mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-03-13 13:09:27 +08:00
40 lines
2.0 KiB
XML
40 lines
2.0 KiB
XML
<ResourceDictionary
|
|
xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
x:CompileBindings="True">
|
|
<!-- Add Resources Here -->
|
|
<ControlTheme x:Key="{x:Type NumericUpDown}" TargetType="NumericUpDown">
|
|
<Setter Property="NumericUpDown.VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="NumericUpDown.CornerRadius" Value="{DynamicResource NumericUpDownCornerRadius}" />
|
|
<Setter Property="NumericUpDown.Template">
|
|
<ControlTemplate TargetType="NumericUpDown">
|
|
<ButtonSpinner
|
|
Name="PART_Spinner"
|
|
MinWidth="0"
|
|
HorizontalContentAlignment="Stretch"
|
|
VerticalContentAlignment="Stretch"
|
|
AllowSpin="{TemplateBinding AllowSpin}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
ButtonSpinnerLocation="{TemplateBinding ButtonSpinnerLocation}"
|
|
ShowButtonSpinner="{TemplateBinding ShowButtonSpinner}">
|
|
<TextBox
|
|
Name="PART_TextBox"
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
AcceptsReturn="False"
|
|
CornerRadius="{TemplateBinding CornerRadius}"
|
|
FontSize="{TemplateBinding FontSize}"
|
|
Foreground="{TemplateBinding Foreground}"
|
|
IsReadOnly="{TemplateBinding IsReadOnly}"
|
|
Text="{TemplateBinding Text}"
|
|
TextWrapping="NoWrap"
|
|
Watermark="{TemplateBinding Watermark}" />
|
|
</ButtonSpinner>
|
|
</ControlTemplate>
|
|
</Setter>
|
|
</ControlTheme>
|
|
|
|
</ResourceDictionary>
|