wpftoolkit icon indicating copy to clipboard operation
wpftoolkit copied to clipboard

How to style UpDown controls spinners ?

Open Crauzer opened this issue 4 years ago • 1 comments

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>

Crauzer avatar May 12 '21 00:05 Crauzer

Hi, You can try with this:

test.txt Thank you

XceedBoucherS avatar May 18 '21 11:05 XceedBoucherS