Statusbar separator in officesilver

Docking/MDI for WPF Forum

Posted 8 years ago by Arthur Damen
Version: 11.2.0553
Platform: .NET 4.0
Environment: Windows 7 (64-bit)
Avatar

The separator in the actipro statusbar looks much to black than the one in MS office.

is this a setting?

Comments (5)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Arthur,

If you mean the top border of the statusbar, that is exactly the same color as Office.  If you mean a Separator within the statusbar, then ours is slightly lighter than Office.


Actipro Software Support

Posted 8 years ago by Arthur Damen
Avatar

I mena the separator inside the actipro statusbar
(The Microsoft Word statusbar separator is much lighter than the actipro.)

The separator in the actipro statusbar looks more like black than gray. This is anoying since the old version looked much nicer.
Now it is to much visible and distracts from the real information.

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Sorry but I'm not sure what you mean since our separator when in Office Silver is lighter if anything than the real Office's.  I just compared them side by side using our main ribbon demo, and also with our Themes' "Native Control Themes" demo.

Maybe you aren't using our theme for StatusBar and are using WPF's default theme.


Actipro Software Support

Posted 8 years ago by Arthur Damen
Avatar

You are right that in the demo it looks ok. Why doesn't it look the same in my example?

Example:

<ribbon:RibbonWindow x:Class="MainWindow"

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

xmlns:shared="http://schemas.actiprosoftware.com/winfx/xaml/shared"

xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"

xmlns:themes="http://schemas.actiprosoftware.com/winfx/xaml/themes"

Title="MainWindow" Height="350" Width="525">

<Grid></Grid>

<ribbon:RibbonWindow.StatusBar >

<StatusBar Height="23" FocusManager.IsFocusScope="True" Style="{DynamicResource {x:Static themes:SharedResourceKeys.StatusBarStyleKey}}">

<StatusBar.ItemsPanel>

<ItemsPanelTemplate>

<Grid>

<Grid.ColumnDefinitions>

<ColumnDefinition Width="Auto" />

<ColumnDefinition Width="Auto" />

<ColumnDefinition Width="Auto" />

<ColumnDefinition Width="Auto" />

<ColumnDefinition Width="*" />

<ColumnDefinition Width="Auto" />

<ColumnDefinition Width="Auto" />

</Grid.ColumnDefinitions>

</Grid>

</ItemsPanelTemplate>

</StatusBar.ItemsPanel>

<StatusBarItem Grid.Column="0" Padding="3,0,0,0">

</StatusBarItem>

<Separator Grid.Column="1" />

<Separator Grid.Column="3" />

</StatusBar>

</ribbon:RibbonWindow.StatusBar>

</ribbon:RibbonWindow>

 

Code:

ThemeManager.CurrentTheme = ThemeName.OfficeSilver.ToString

Answer - Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Thanks for the sample, I see now.  Since you aren't activating our native WPF control themes, the Separator doesn't get its StatusBar appearance by default.  You could assign it manually like this:

<Separator Style="{DynamicResource {x:Static themes:SharedResourceKeys.StatusBarEmbeddedSeparatorStyleKey}}" />

Also if you are using Office themes, make sure you reference our new ActiproSoftware.Themes.Office.Wpf.dll and at some point before the ThemeManager.CurrentTheme set, do this to register the Office themes from that .dll:

ThemesOfficeThemeCatalogRegistrar.Register();

It looks like we were missing the Separator style attribute (as above) in the Ribbon VS item templates, so we'll update those for the next build.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 13 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.