Set Background Color of Tab Area in Bars Ribbon

Bars for WPF Forum

Posted 2 months ago by Miles Merckel
Version: 24.1.4
Avatar

Hi

Trying to set the background color around the tab area of Bars Ribbon. I've tried a bunch of properties in App.Resources

 <SolidColorBrush x:Key="{x:Static themes:AssetResourceKeys.RibbonTabControlBackgroundNormalBrushKey}" Color="Purple" />
 <SolidColorBrush x:Key="{x:Static themes:AssetResourceKeys.RibbonTabItemBorderSelectedBrushKey}" Color="Purple" />
 <SolidColorBrush x:Key="{x:Static themes:AssetResourceKeys.RibbonTabControlBorderNormalBrushKey}" Color="Purple" />
 <SolidColorBrush x:Key="{x:Static themes:AssetResourceKeys.LegacyRibbonBackgroundNormalBrushKey}" Color="Purple" />
 <SolidColorBrush x:Key="{x:Static themes:AssetResourceKeys.RibbonBackgroundNormalBrushKey}" Color="Purple" />
 <SolidColorBrush x:Key="{x:Static themes:AssetResourceKeys.LegacyRibbonTabControlBackgroundNormalBrushKey}" Color="Purple" />

Also tried the Ribbon.Background property but without success.

<bars:Ribbon Background="Purple" ...>

Any help would be appreciated.

Thanks

Miles

[Modified 2 months ago]

Comments (2)

Answer - Posted 2 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

The bars:Ribbon.Background property will control the background area of the ribbon where the tab groups are arranged.  When I set the Background like you did in the last snippet above, it updates that area.

The area around (outside of) the ribbon background area is all Transparent.  The tabs themselves are in that area with a Transparent background.  Setting the Background of the Panel that contains bars:Ribbon should control how that area renders. 


Actipro Software Support

Posted 2 months ago by Miles Merckel
Avatar

Ah thanks, made me look at the mainwindow background property. Had already set the main window up with Background="{DynamicResource MyColour}" but commented it out for some reason. Uncommenting it out fixed it thanks.

The latest build of this product (v24.1.5) 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.