feat: redesign NumericUpDown.
This commit is contained in:
parent
46e57925b9
commit
4d14c846b0
@ -8,6 +8,24 @@
|
|||||||
d:DesignWidth="800"
|
d:DesignWidth="800"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
<StackPanel HorizontalAlignment="Left" Spacing="20">
|
<StackPanel HorizontalAlignment="Left" Spacing="20">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<NumericUpDown Classes="Large" Width="150" ButtonSpinnerLocation="Left"/>
|
||||||
|
<NumericUpDown Width="150" ShowButtonSpinner="False" />
|
||||||
|
<NumericUpDown Classes="Small" Width="150" />
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<NumericUpDown Width="150" ButtonSpinnerLocation="Left" />
|
||||||
|
<NumericUpDown Width="150" ShowButtonSpinner="False" />
|
||||||
|
<NumericUpDown Width="150" />
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<NumericUpDown Width="150" ShowButtonSpinner="False" />
|
||||||
|
<NumericUpDown IsEnabled="False" Width="150" />
|
||||||
|
<NumericUpDown Width="150" ButtonSpinnerLocation="Left" />
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
<NumericUpDown
|
<NumericUpDown
|
||||||
Width="200"
|
Width="200"
|
||||||
Maximum="100"
|
Maximum="100"
|
||||||
@ -44,4 +62,4 @@
|
|||||||
Maximum="100"
|
Maximum="100"
|
||||||
Minimum="0" />
|
Minimum="0" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</UserControl>
|
</UserControl>
|
@ -4,6 +4,7 @@
|
|||||||
x:CompileBindings="True">
|
x:CompileBindings="True">
|
||||||
<!-- Add Resources Here -->
|
<!-- Add Resources Here -->
|
||||||
<ControlTheme x:Key="{x:Type NumericUpDown}" TargetType="NumericUpDown">
|
<ControlTheme x:Key="{x:Type NumericUpDown}" TargetType="NumericUpDown">
|
||||||
|
<Setter Property="NumericUpDown.VerticalAlignment" Value="Center" />
|
||||||
<Setter Property="NumericUpDown.VerticalContentAlignment" Value="Center" />
|
<Setter Property="NumericUpDown.VerticalContentAlignment" Value="Center" />
|
||||||
<Setter Property="NumericUpDown.CornerRadius" Value="{DynamicResource NumericUpDownCornerRadius}" />
|
<Setter Property="NumericUpDown.CornerRadius" Value="{DynamicResource NumericUpDownCornerRadius}" />
|
||||||
<Setter Property="NumericUpDown.Template">
|
<Setter Property="NumericUpDown.Template">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user