Browse Source

Styled GridSplitters

pull/362/head
susloparov 11 years ago
parent
commit
0a4730d9ba
  1. 18
      src/Perspex.Themes.Default/HorizontalGridSplitter.paml
  2. 18
      src/Perspex.Themes.Default/VerticalGridSplitter.paml

18
src/Perspex.Themes.Default/HorizontalGridSplitter.paml

@ -1,8 +1,24 @@
<Style xmlns="https://github.com/perspex" Selector="HorizontalGridSplitter">
<Setter Property="Height" Value="6"/>
<Setter Property="Background" Value="LightGray"/>
<Setter Property="Template">
<ControlTemplate>
<Border Background="{TemplateBinding Background}"/>
<Border Background="{TemplateBinding Background}">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<StackPanel.Styles>
<Style Selector="Ellipse">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Width" Value="4"/>
<Setter Property="Height" Value="4"/>
<Setter Property="Fill" Value="#404040"/>
<Setter Property="Margin" Value="1"/>
</Style>
</StackPanel.Styles>
<Ellipse/>
<Ellipse/>
<Ellipse/>
</StackPanel>
</Border>
</ControlTemplate>
</Setter>
</Style>

18
src/Perspex.Themes.Default/VerticalGridSplitter.paml

@ -1,8 +1,24 @@
<Style xmlns="https://github.com/perspex" Selector="VerticalGridSplitter">
<Setter Property="Width" Value="6"/>
<Setter Property="Background" Value="LightGray"/>
<Setter Property="Template">
<ControlTemplate>
<Border Background="{TemplateBinding Background}"/>
<Border Background="{TemplateBinding Background}">
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
<StackPanel.Styles>
<Style Selector="Ellipse">
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Width" Value="4"/>
<Setter Property="Height" Value="4"/>
<Setter Property="Fill" Value="#404040"/>
<Setter Property="Margin" Value="1"/>
</Style>
</StackPanel.Styles>
<Ellipse/>
<Ellipse/>
<Ellipse/>
</StackPanel>
</Border>
</ControlTemplate>
</Setter>
</Style>

Loading…
Cancel
Save