mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-11 11:46:36 +08:00
feat: redesign NumericUpDown.
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user