在WPF Toolkit NumericUpDown控件中更改箭头颜色?

在WPF Toolkit NumericUpDown控件中更改箭头颜色?,wpf,wpftoolkit,numericupdown,Wpf,Wpftoolkit,Numericupdown,有没有一种样式可以从WPF工具包中指向NumericUpDown控件中的箭头?我想更改箭头的颜色。您可以覆盖前景的颜色 您必须将Xceed.Wpf.Toolkit.Themesxmnls命名空间添加到xaml中。 (或WpfToolkit.Themes,如果您使用的是旧版本) 例如: <Grid> <wpfToolkit:IntegerUpDown Margin="37,25,0,0" VerticalAlignment="Top" HorizontalAlignme

有没有一种样式可以从WPF工具包中指向NumericUpDown控件中的箭头?我想更改箭头的颜色。

您可以覆盖
前景的
颜色

您必须将
Xceed.Wpf.Toolkit.Themes
xmnls命名空间添加到xaml中。 (或WpfToolkit.Themes,如果您使用的是旧版本)

例如:

<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>


结果:


要添加Xceed.Wpf.Toolkit.Themes命名空间,请使用以下名称 xmlns:theme=“clr namespace:Xceed.Wpf.Toolkit.Themes;assembly=Xceed.Wpf.Toolkit”

我将
xmlns:theme=“clr namespace:Xceed.Wpf.Toolkit.Themes”
添加到顶部,但当我尝试您的代码时,我得到错误“名称空间中不存在“ResourceKeys…”。当我查看WPFToolkit.Extended reference的对象浏览器时,我可以看到其中的所有内容,所以我不知道为什么它没有注意到它。