You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
3.9 KiB
Plaintext
70 lines
3.9 KiB
Plaintext
1 year ago
|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||
|
<!--gridsplitter 样式开始-->
|
||
|
<Style x:Key="GridSplitterPreviewStyle" >
|
||
|
<Setter Property="Control.Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate>
|
||
|
<Rectangle Fill="#80000000"/>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
<Style x:Key="GridSplitterStyleRow" TargetType="{x:Type GridSplitter}">
|
||
|
<Setter Property="Background"
|
||
|
Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
|
||
|
<Setter Property="PreviewStyle" Value="{StaticResource GridSplitterPreviewStyle}"/>
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="{x:Type GridSplitter}">
|
||
|
<Border BorderBrush="{TemplateBinding BorderBrush}"
|
||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||
|
Background="{TemplateBinding Background}"
|
||
|
CornerRadius="5">
|
||
|
<Canvas RenderOptions.EdgeMode="Aliased" UseLayoutRounding="True"
|
||
|
Height="6" VerticalAlignment="Center"
|
||
|
Width="50" HorizontalAlignment="Center">
|
||
|
<Line X1="0" X2="50" Y1="0" Y2="0" Stroke="White" StrokeThickness="1"/>
|
||
|
<Line X1="0" X2="50" Y1="1" Y2="1" Stroke="#A0A0A0" StrokeThickness="1"/>
|
||
|
<Line X1="0" X2="50" Y1="4" Y2="4" Stroke="White" StrokeThickness="1"/>
|
||
|
<Line X1="0" X2="50" Y1="5" Y2="5" Stroke="#A0A0A0" StrokeThickness="1"/>
|
||
|
</Canvas>
|
||
|
</Border>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
<Style x:Key="GridSplitterStyleColumns" TargetType="{x:Type GridSplitter}">
|
||
|
<Setter Property="Background"
|
||
|
Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
|
||
|
<Setter Property="PreviewStyle" Value="{StaticResource GridSplitterPreviewStyle}"/>
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="{x:Type GridSplitter}">
|
||
|
<Border BorderBrush="{TemplateBinding BorderBrush}"
|
||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||
|
Background="{TemplateBinding Background}"
|
||
|
>
|
||
|
<Canvas RenderOptions.EdgeMode="Aliased" UseLayoutRounding="True"
|
||
|
Height="6" VerticalAlignment="Center"
|
||
|
Width="50" HorizontalAlignment="Center" RenderTransformOrigin="0.5,0.5">
|
||
|
<Canvas.RenderTransform>
|
||
|
<TransformGroup>
|
||
|
<ScaleTransform/>
|
||
|
<SkewTransform/>
|
||
|
<RotateTransform Angle="90"/>
|
||
|
<TranslateTransform/>
|
||
|
</TransformGroup>
|
||
|
</Canvas.RenderTransform>
|
||
|
<Line X1="0" X2="50" Y1="0" Y2="0" Stroke="White" StrokeThickness="1"/>
|
||
|
<Line X1="0" X2="50" Y1="1" Y2="1" Stroke="#A0A0A0" StrokeThickness="1"/>
|
||
|
<Line X1="0" X2="50" Y1="4" Y2="4" Stroke="White" StrokeThickness="1"/>
|
||
|
<Line X1="0" X2="50" Y1="5" Y2="5" Stroke="#A0A0A0" StrokeThickness="1"/>
|
||
|
</Canvas>
|
||
|
</Border>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
<!--gridsplitter 样式结束-->
|
||
|
</ResourceDictionary>
|