xceedsoftware / wpftoolkit

All the controls missing in WPF. Over 1 million downloads.
Other
3.91k stars 878 forks source link

How to style UpDown controls spinners ? #1665

Open Crauzer opened 3 years ago

Crauzer commented 3 years ago

I've got this so far but it seems like the spinner colors don't change and I can't find what else I could style.

<Style TargetType="{x:Type WpfToolkit:ButtonSpinner}" BasedOn="{StaticResource {x:Type WpfToolkit:ButtonSpinner}}">
    <Style.Setters>
        <Setter Property="Background" Value="{StaticResource MaterialDesignPaper}"/>
        <Setter Property="Foreground" Value="{StaticResource MaterialDesignDarkForeground}"/>
    </Style.Setters>
</Style>

<Style TargetType="{x:Type WpfToolkit:IntegerUpDown}" BasedOn="{StaticResource {x:Type WpfToolkit:IntegerUpDown}}">
    <Style.Setters>
        <Setter Property="Background" Value="{StaticResource MaterialDesignPaper}"/>
        <Setter Property="Foreground" Value="{StaticResource MaterialDesignDarkForeground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource MaterialDesignTextFieldBoxBackground}"/>
    </Style.Setters>
</Style>
XceedBoucherS commented 3 years ago

Hi, You can try with this:

test.txt Thank you