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

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -