Status bar button style?

Ribbon for WPF Forum

Posted 12 years ago by Brad Daszynski
Version: 3.0.0410
Avatar
In MS Word, for example, they have buttons on the status bar that are not the normal button style. Looks like just text, but when you hover over it you get a mouse over effect, much like the buttons in the ribbon. Does the Actipro ribbon include specific buttons styles for use with the bottom status bar? Thanks.

Comments (5)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Brad,

Actually check out our samples in the v3.0 Sample Browser. Both the StatusBar Styles QuickStart and the main demo show these sorts of buttons in action. They are ribbon:Button controls that look like labels when they have a Context of StatusBarItem. So it's super easy to add them.

Here's a sample of the first button in the sample:

<ribbon:Button Context="StatusBarItem" Padding="6,0,6,0" Label="Page: 1 of 1" 
   ScreenTipHeader="Page number in document. Click to open the Go To dialog box." />


Actipro Software Support

Posted 12 years ago by Brad Daszynski
Avatar
Cool. What about putting other controls within a status bar button? StackPanel, Image, etc.
Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Since this is ribbon:Button, an image can be set to ImageSourceSmall property. You could retemplate the ribbon:Button to allow for other content like StackPanel if you wish.

But if you want to do that, the other option is to take a regular WPF Button, use our built-in style that we made for native WPF buttons, and put that in the StatusBar. This way you can set its Content property to whatever you need.


Actipro Software Support

Posted 12 years ago by Brad Daszynski
Avatar
So would it be

<Button Style="{DynamicResource {x:Static ribbon:RibbonStyles.ButtonKey}}" >
<StackPanel Orientation="Horizontal">
...
...

Having some problems...
Posted 12 years ago by Brad Daszynski
Avatar
Nevermind... got it
The latest build of this product (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.