整理代码
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<ResourceDictionary
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:Melskin.Controls"
|
||||
xmlns:converters="clr-namespace:Melskin.Converters"
|
||||
xmlns:internal="clr-namespace:Melskin.Converters.Internal"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
xmlns:internal="clr-namespace:Melskin.Converters.Internal">
|
||||
|
||||
<Style TargetType="{x:Type controls:BreadcrumbItem}" x:Key="BreadcrumbItemStyle">
|
||||
<Style x:Key="BreadcrumbItemStyle" TargetType="{x:Type controls:BreadcrumbItem}">
|
||||
<Setter Property="FocusVisualStyle" Value="{DynamicResource FocusVisual}" />
|
||||
<Setter Property="SnapsToDevicePixels" Value="True" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
@@ -16,34 +16,34 @@
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type controls:BreadcrumbItem}">
|
||||
<Border
|
||||
x:Name="Bd"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
||||
x:Name="Bd">
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<ContentPresenter
|
||||
Cursor="Hand"
|
||||
x:Name="content"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
||||
x:Name="content" />
|
||||
Cursor="Hand"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
|
||||
<TextBlock
|
||||
Foreground="{TemplateBinding SeparatorBrush}"
|
||||
x:Name="separator"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
Foreground="{TemplateBinding SeparatorBrush}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
||||
Text="{TemplateBinding Separator}"
|
||||
Visibility="Collapsed"
|
||||
x:Name="separator" />
|
||||
Visibility="Collapsed" />
|
||||
|
||||
<Rectangle
|
||||
Fill="{TemplateBinding SeparatorBrush}"
|
||||
x:Name="separatorIcon"
|
||||
Width="20"
|
||||
Height="2"
|
||||
Margin="{TemplateBinding Padding}"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
VerticalAlignment="Center"
|
||||
Width="20"
|
||||
x:Name="separatorIcon">
|
||||
Fill="{TemplateBinding SeparatorBrush}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<Rectangle.RenderTransform>
|
||||
<RotateTransform Angle="105" />
|
||||
</Rectangle.RenderTransform>
|
||||
@@ -68,8 +68,8 @@
|
||||
<Binding RelativeSource="{RelativeSource Mode=Self}" />
|
||||
</MultiBinding>
|
||||
</DataTrigger.Binding>
|
||||
<Setter Property="Visibility" TargetName="separator" Value="Collapsed" />
|
||||
<Setter Property="Visibility" TargetName="separatorIcon" Value="Collapsed" />
|
||||
<Setter TargetName="separator" Property="Visibility" Value="Collapsed" />
|
||||
<Setter TargetName="separatorIcon" Property="Visibility" Value="Collapsed" />
|
||||
</DataTrigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
@@ -99,16 +99,16 @@
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type controls:Breadcrumb}">
|
||||
<Border
|
||||
x:Name="Bd"
|
||||
Background="{TemplateBinding Background}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
||||
x:Name="Bd">
|
||||
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}">
|
||||
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter Property="Opacity" TargetName="Bd" Value="0.5" />
|
||||
<Setter TargetName="Bd" Property="Opacity" Value="0.5" />
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
||||
Reference in New Issue
Block a user