-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Expand file tree
/
Copy pathMaterialDesignTheme.Separator.xaml
More file actions
26 lines (25 loc) · 1.41 KB
/
MaterialDesignTheme.Separator.xaml
File metadata and controls
26 lines (25 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:MaterialDesignThemes.Wpf.Converters"
xmlns:wpf="clr-namespace:MaterialDesignThemes.Wpf">
<Style x:Key="MaterialDesignSeparator" TargetType="{x:Type Separator}">
<Setter Property="Background" Value="{DynamicResource MaterialDesign.Brush.Separator.Background}" />
<Setter Property="BorderBrush" Value="{DynamicResource MaterialDesign.Brush.Separator.Background}" />
<Setter Property="Height" Value="1" />
<Setter Property="MinHeight" Value="1" />
<Setter Property="SnapsToDevicePixels" Value="true" />
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="VerticalContentAlignment" Value="Center" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Separator}">
<Rectangle Height="{TemplateBinding Height}"
Width="{TemplateBinding Width}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Fill="{TemplateBinding Background}" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>