Changing the arrow color in WPF Toolkit NumericUpDown control?

安稳与你 提交于 2019-12-02 00:26:25

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:

To add Xceed.Wpf.Toolkit.Themes namespace use this xmlns:theme="clr-namespace:Xceed.Wpf.Toolkit.Themes;assembly=Xceed.Wpf.Toolkit"

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!