Tuesday, 15 May 2012

wpftoolkit - Changing the arrow color in WPF Toolkit NumericUpDown control? -



wpftoolkit - Changing the arrow color in WPF Toolkit NumericUpDown control? -

is there way style target arrows in numericupdown command wpf toolkit? want alter color of arrows.

you can override glyphnormalforeground color.

you have add together xceed.wpf.toolkit.themes xmnls namespace xaml. (or wpftoolkit.themes if using old version)

example:

<grid> <wpftoolkit:integerupdown margin="37,25,0,0" verticalalignment="top" horizontalalignment="left" > <wpftoolkit:integerupdown.style> <style targettype="{x:type wpftoolkit:integerupdown}"> <style.resources> <solidcolorbrush x:key="{x:static theme:resourcekeys.glyphnormalforegroundkey}" color="red"/> </style.resources> </style> </wpftoolkit:integerupdown.style> </wpftoolkit:integerupdown> </grid>

result:

wpf wpftoolkit numericupdown

No comments:

Post a Comment