Aaron D.
Aaron D.

Reputation: 141

Changing the arrow color in WPF Toolkit NumericUpDown control?

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.

Upvotes: 2

Views: 3020

Answers (2)

OscylO
OscylO

Reputation: 21

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

Upvotes: 1

sa_ddam213
sa_ddam213

Reputation: 43596

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:

enter image description here

Upvotes: 2

Related Questions