Problem with a colored icon in colorful themes

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 2 years ago by Patrick Neubauer
Version: 22.1.0
Platform: .NET 5.0
Environment: Windows 10 (64-bit)

Hi there,

we have a problem with colored icons in the quick access toolbar when using a colorful theme.
When using a colorful theme the icon is always displayed white.

Is this by design?
Is there a way to get it to display the colored icon in the colorful theme?
I already tried using another imageprovider but this didn´t work.

Best Regards, 

Comments (3)

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

Hi Patrick,

In a Colorful theme where the title bar has an intense colored background, normal button icons in the title bar won't show up properly since the contrast would be very poor with the background.  That's why Office apps make the icons white monochrome when in the title bar (and when the QAT is in the title bar), so that there is proper contrast and they are distinguishable.

Can you describe more about your scenario, and why you might not want this important accessbility behavior?

Actipro Software Support

Posted 2 years ago by Patrick Neubauer


we would like to show our colored icon if the undo will affect something that isn´t currenty open. 
Is there some kind of way to get it to show the colored icon regardless of the selected theme?

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

Hi Patrick,

Our ribbon button templates set the DynamicImage control's UseMonochrome property to true if the attached ribbon:RibbonControlService.UseMonochromeImage property on the containing button control is true.  There are triggers that kick all that in.  The reason the property is on the control instead of the image source is most of the time, the theme and containing control (e.g. button) location determine its value.

Here's an example of overriding it:

	<ribbon:Button Id="Save" Command="ApplicationCommands.Save" ribbon:RibbonControlService.UseMonochromeImage="False" />

Actipro Software Support

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