命名调整
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<ResourceDictionary Source="pack://application:,,,/AntdWpf;component/Styles/Animations.xaml" />
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
<Style TargetType="{x:Type controls:Button}">
|
||||
<Style TargetType="{x:Type controls:AntButton}">
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||
@@ -22,11 +22,11 @@
|
||||
<Setter Property="Background" Value="{DynamicResource ButtonDefaultBackground}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource ButtonDefaultForeground}" />
|
||||
<Setter Property="BorderThickness" Value="{DynamicResource BorderThicknessBase}" />
|
||||
<Setter Property="helpers:Control.BorderStyle" Value="{DynamicResource BorderStyleBase}" />
|
||||
<Setter Property="helpers:Control.CornerRadius" Value="{DynamicResource ButtonBorderRadiusBase}" />
|
||||
<Setter Property="helpers:AntdControl.BorderStyle" Value="{DynamicResource BorderStyleBase}" />
|
||||
<Setter Property="helpers:AntdControl.CornerRadius" Value="{DynamicResource ButtonBorderRadiusBase}" />
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type controls:Button}">
|
||||
<ControlTemplate TargetType="{x:Type controls:AntButton}">
|
||||
<Grid>
|
||||
<!-- Effect -->
|
||||
<Border x:Name="Effect"
|
||||
@@ -36,17 +36,17 @@
|
||||
BorderThickness="0"
|
||||
BorderBrush="{TemplateBinding EffectBrush}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
||||
CornerRadius="{TemplateBinding helpers:Control.CornerRadius}" />
|
||||
CornerRadius="{TemplateBinding helpers:AntdControl.CornerRadius}" />
|
||||
<!-- Border -->
|
||||
<controls:Border x:Name="PART_Border"
|
||||
<controls:AntdBorder x:Name="PART_Border"
|
||||
UseLayoutRounding="True"
|
||||
Padding="{TemplateBinding Padding}"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
||||
BorderStyle="{TemplateBinding helpers:Control.BorderStyle}"
|
||||
CornerRadius="{TemplateBinding helpers:Control.CornerRadius}">
|
||||
BorderStyle="{TemplateBinding helpers:AntdControl.BorderStyle}"
|
||||
CornerRadius="{TemplateBinding helpers:AntdControl.CornerRadius}">
|
||||
<!-- Content -->
|
||||
<Grid VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}">
|
||||
@@ -68,7 +68,7 @@
|
||||
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
||||
ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" />
|
||||
</Grid>
|
||||
</controls:Border>
|
||||
</controls:AntdBorder>
|
||||
<VisualStateManager.VisualStateGroups>
|
||||
<VisualStateGroup x:Name="CommonStates">
|
||||
<VisualStateGroup.Transitions>
|
||||
@@ -146,7 +146,7 @@
|
||||
</Trigger>
|
||||
<!-- Dashed -->
|
||||
<Trigger Property="Type" Value="Dashed">
|
||||
<Setter Property="helpers:Control.BorderStyle" Value="Dashed" />
|
||||
<Setter Property="helpers:AntdControl.BorderStyle" Value="Dashed" />
|
||||
</Trigger>
|
||||
<!-- Danger -->
|
||||
<Trigger Property="Type" Value="Danger">
|
||||
@@ -165,13 +165,13 @@
|
||||
<Setter Property="Height" Value="{DynamicResource ButtonHeightSmall}" />
|
||||
<Setter Property="Padding" Value="{DynamicResource ButtonPaddingSmall}" />
|
||||
<Setter Property="FontSize" Value="{DynamicResource ButtonFontSizeSmall}" />
|
||||
<Setter Property="helpers:Control.CornerRadius" Value="{DynamicResource ButtonBorderRadiusSmall}" />
|
||||
<Setter Property="helpers:AntdControl.CornerRadius" Value="{DynamicResource ButtonBorderRadiusSmall}" />
|
||||
</Trigger>
|
||||
<!-- Shape Circle -->
|
||||
<Trigger Property="Shape" Value="Circle">
|
||||
<Setter Property="Padding" Value="0" />
|
||||
<Setter Property="Width" Value="{Binding Height, Mode=OneWay, RelativeSource={RelativeSource Self}}" />
|
||||
<Setter Property="helpers:Control.CornerRadius" Value="{Binding Height, Mode=OneWay, RelativeSource={RelativeSource Self},
|
||||
<Setter Property="helpers:AntdControl.CornerRadius" Value="{Binding Height, Mode=OneWay, RelativeSource={RelativeSource Self},
|
||||
Converter={StaticResource DoubleToCornerRadiusConverter}, ConverterParameter=2}" />
|
||||
</Trigger>
|
||||
<!-- Loading State -->
|
||||
|
||||
Reference in New Issue
Block a user