Is there a way with a style to target the arrows in the NumericUpDown control from the WPF Toolkit? I want to change the color of the arrows.
You can override the GlyphNormalForeground
color.
you will have to add the Xceed.Wpf.Toolkit.Themes
xmnls namespace to your xaml.
(or WpfToolkit.Themes if your using the 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:
![](https://www.eimg.top/images/2020/03/09/af9320561905d8d846d6cb3b91867ec4.png)
To add Xceed.Wpf.Toolkit.Themes namespace use this xmlns:theme="clr-namespace:Xceed.Wpf.Toolkit.Themes;assembly=Xceed.Wpf.Toolkit"
来源:https://stackoverflow.com/questions/14865232/changing-the-arrow-color-in-wpf-toolkit-numericupdown-control