How to control the color of control background and foreground.

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 11 months ago by Roger
Version: 23.1.2

ThemeIntent enum has Dark or Black and I would like to customize the background and foreground colors for entire controls.
I could not find a way to change the colors.

How should I specify the colors in the codes?

Comments (1)

Posted 11 months ago by Actipro Software Support - Cleveland, OH, USA


If you run our Theme Designer application, you can customize the values in the property grid's Grayscale Palette and other sections to tweak the overall look of a theme.  The linked documentation topic talks about how to then use the adjusted ThemeDefinition in your app startup.

If you are looking to customize individual brushes, you can see them all in the Resource Browser tab in the Theme Designer app.  There is a filter textbox in that tab, so you can enter things like "ButtonForeground" or "ContainerBackground" to see related brushes.  And this documentation topic tells you how you can customize individual brush values if you don't like our generated values.

Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.