wpf - How to make Foreground color of all controls White by default -


1- create new wpf application.

2- add controls wpf application.

3- see foreground color of controls black default.

how make foreground color of controls white default?

enter image description here

"foreground color of controls black default." because windows theme setting.

you can assign own foreground brush using controltextbrushkey key

<application.resources>     <solidcolorbrush x:key="{x:static systemcolors.controltextbrushkey }" color="green"/> </application.resources> 

this setting seen in designer in property grid


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -