命名调整
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
<Style x:Key="Ant.WindowCloseButton" BasedOn="{StaticResource Ant.WindowButton}" TargetType="{x:Type Button}">
|
||||
<Setter Property="helpers:Control.MouseOverBackground" Value="{DynamicResource ErrorBrush}" />
|
||||
<Setter Property="helpers:Control.PressedBackground"
|
||||
Value="{Binding Path=(helpers:Control.MouseOverBackground), Mode=OneWay, ConverterParameter=7,
|
||||
<Setter Property="helpers:AntdControl.MouseOverBackground" Value="{DynamicResource ErrorBrush}" />
|
||||
<Setter Property="helpers:AntdControl.PressedBackground"
|
||||
Value="{Binding Path=(helpers:AntdControl.MouseOverBackground), Mode=OneWay, ConverterParameter=7,
|
||||
RelativeSource={RelativeSource Self}, Converter={StaticResource ColorPaletteConverter}}" />
|
||||
</Style>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button x:Name="PART_Min"
|
||||
ToolTip="{TemplateBinding Minimize}"
|
||||
Visibility="{Binding ResizeMode, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type controls:Window}},
|
||||
Visibility="{Binding ResizeMode, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type controls:AntdWindow}},
|
||||
Converter={StaticResource ResizeModeToVisibilityConverter}, ConverterParameter=MIN}">
|
||||
<Path RenderOptions.EdgeMode="Aliased"
|
||||
Data="M0,1 L 12,1 12,1.8 0,1.8z"
|
||||
@@ -36,7 +36,7 @@
|
||||
</Button>
|
||||
<Button x:Name="PART_Max"
|
||||
ToolTip="{TemplateBinding Maximize}"
|
||||
Visibility="{Binding ResizeMode, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type controls:Window}},
|
||||
Visibility="{Binding ResizeMode, Mode=OneWay, RelativeSource={RelativeSource AncestorType={x:Type controls:AntdWindow}},
|
||||
Converter={StaticResource ResizeModeToVisibilityConverter}, ConverterParameter=MAX}">
|
||||
<Path x:Name="PART_MaxPath"
|
||||
UseLayoutRounding="True"
|
||||
@@ -58,7 +58,7 @@
|
||||
</Button>
|
||||
</StackPanel>
|
||||
<ControlTemplate.Triggers>
|
||||
<DataTrigger Binding="{Binding WindowState, RelativeSource={RelativeSource AncestorType={x:Type controls:Window}}}" Value="Maximized">
|
||||
<DataTrigger Binding="{Binding WindowState, RelativeSource={RelativeSource AncestorType={x:Type controls:AntdWindow}}}" Value="Maximized">
|
||||
<Setter TargetName="PART_Max" Property="ToolTip" Value="{Binding Restore, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||
<Setter TargetName="PART_MaxPath" Property="Data" Value="M2,2 L2,0 12,0 12,10 10.5,10 10.5,9 11,9 11,1 2.5,1 2.5,2z M0,2 L10.5,2 10.5,11 0,11z M1,2.5 L10,2.5 10,10.5 1,10.5z" />
|
||||
</DataTrigger>
|
||||
|
||||
Reference in New Issue
Block a user