Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: How to make the Up/Down buttons of IngegerUpDown wider

$
0
0
The following Style could change the color of the IntegerUpDown buttons. I was experimenting with making the up/down buttons wider similarly without success.
<extwpf:IntegerUpDown.Style>
    <Style TargetType="{x:Type extwpf:IntegerUpDown}" BasedOn="{StaticResource StyleField}">
        <Style.Resources>
            <SolidColorBrush x:Key="{x:Static theme:ResourceKeys.GlyphNormalForegroundKey}"  Color="Red"/>
        </Style.Resources>
    </Style>
</extwpf:IntegerUpDown.Style>
The complete definition for the IntegerUpDown control is as follows:
<extwpf:IntegerUpDown Margin="{StaticResource ControlHorizontal}" VerticalAlignment="Center"
    Grid.Column="{Binding Label, Converter={StaticResource LabelToStartColumnConverter}, ConverterParameter=1}"
    Grid.ColumnSpan="{Binding Label, Converter={StaticResource LabelToColumnSpanConverter}, ConverterParameter=1}"
    Value="{Binding ValueNumber, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}" FormatString="N0" Minimum="{Binding Minimum}" Maximum="{Binding Maximum}"
    local:TextInputFilter.AllowedCharacters="0123456789,+-" >
    <extwpf:IntegerUpDown.Style>
        <Style TargetType="{x:Type extwpf:IntegerUpDown}" BasedOn="{StaticResource StyleField}">
            <Style.Resources>
                <SolidColorBrush x:Key="{x:Static theme:ResourceKeys.GlyphNormalForegroundKey}"  Color="Red"/>
            </Style.Resources>
        </Style>
    </extwpf:IntegerUpDown.Style>
</extwpf:IntegerUpDown>
Any help is greatly appreciated.
Thanks,
Jenny

Viewing all articles
Browse latest Browse all 4964


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>