Using Custom Theme and could not find Ribbon Button Label Foreground color change.

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 10 years ago by sravanthi
Version: 13.2.0591
Avatar

Hi I am using my custom theme and i had a xaml file for it. I have to change the foreground color of Ribbon:Button label and could not find any option to mchange it. pls help.

xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
 <ribbon:Button 
                Label="{Binding Title}"
                VariantSize="Large"
                ImageSourceLarge="{Binding ImagePath}"
                Width="100"    
                VerticalContentAlignment="Center"
                Command="{Binding ElementName=PerformanceGroup, Path=DataContext.SelectedCommand}"     
                CommandParameter="{Binding}"
                Visibility="{Binding Visibility}"
                IsEnabled="{Binding IsEnabled}"
                ToolTip="{Binding Title}">
                
            </ribbon:Button>

 Above is my code.

Comments (1)

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

Hello,

You could either set the Foreground property on the ribbon:Button, or put a Brush override in your app's Resources with this key:

{DynamicResource {x:Static themes:AssetResourceKeys.ToolBarButtonForegroundNormalBrushKey}}

That is the brush resource used by default in the Foreground.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.