Skip to content

Commit 602a24b

Browse files
XAML Styler GridSplitter Control XAML (no changes)
1 parent 0cb2ea6 commit 602a24b

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Layout/GridSplitter/GridSplitter.xaml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,37 @@
44

55
<ResourceDictionary.ThemeDictionaries>
66
<ResourceDictionary x:Key="Default">
7-
<SolidColorBrush x:Key="SystemControlSplitterPointerOver" Color="{ThemeResource SystemBaseLowColor}" />
8-
<SolidColorBrush x:Key="SystemControlSplitterPressed" Color="{ThemeResource SystemBaseHighColor}" />
7+
<SolidColorBrush x:Key="SystemControlSplitterPointerOver"
8+
Color="{ThemeResource SystemBaseLowColor}" />
9+
<SolidColorBrush x:Key="SystemControlSplitterPressed"
10+
Color="{ThemeResource SystemBaseHighColor}" />
911
</ResourceDictionary>
1012
<ResourceDictionary x:Key="HighContrast">
11-
<SolidColorBrush x:Key="SystemControlSplitterPointerOver" Color="{ThemeResource SystemColorHighlightColor}" />
12-
<SolidColorBrush x:Key="SystemControlSplitterPressed" Color="{ThemeResource SystemColorHighlightColor}" />
13+
<SolidColorBrush x:Key="SystemControlSplitterPointerOver"
14+
Color="{ThemeResource SystemColorHighlightColor}" />
15+
<SolidColorBrush x:Key="SystemControlSplitterPressed"
16+
Color="{ThemeResource SystemColorHighlightColor}" />
1317
</ResourceDictionary>
1418
</ResourceDictionary.ThemeDictionaries>
1519

1620
<Style TargetType="local:GridSplitter">
17-
<Setter Property="IsTabStop" Value="True"></Setter>
18-
<Setter Property="UseSystemFocusVisuals" Value="True"></Setter>
19-
<Setter Property="HorizontalAlignment" Value="Stretch"></Setter>
20-
<Setter Property="VerticalAlignment" Value="Stretch"></Setter>
21-
<Setter Property="IsFocusEngagementEnabled" Value="True"></Setter>
22-
<Setter Property="MinWidth" Value="16"></Setter>
23-
<Setter Property="MinHeight" Value="16"></Setter>
24-
<Setter Property="Background" Value="{ThemeResource SystemControlHighlightChromeHighBrush}"></Setter>
21+
<Setter Property="IsTabStop" Value="True" />
22+
<Setter Property="UseSystemFocusVisuals" Value="True" />
23+
<Setter Property="HorizontalAlignment" Value="Stretch" />
24+
<Setter Property="VerticalAlignment" Value="Stretch" />
25+
<Setter Property="IsFocusEngagementEnabled" Value="True" />
26+
<Setter Property="MinWidth" Value="16" />
27+
<Setter Property="MinHeight" Value="16" />
28+
<Setter Property="Background" Value="{ThemeResource SystemControlHighlightChromeHighBrush}" />
2529
<Setter Property="GripperForeground" Value="{ThemeResource SystemControlForegroundAltHighBrush}" />
2630
<Setter Property="Template">
2731
<Setter.Value>
2832
<ControlTemplate TargetType="local:GridSplitter">
29-
<Grid x:Name="RootGrid" Background="{TemplateBinding Background}">
33+
<Grid x:Name="RootGrid"
34+
Background="{TemplateBinding Background}">
35+
<ContentPresenter HorizontalContentAlignment="Stretch"
36+
VerticalContentAlignment="Stretch"
37+
Content="{TemplateBinding Element}" />
3038
<VisualStateManager.VisualStateGroups>
3139
<VisualStateGroup x:Name="GridSplitterStates">
3240
<VisualState x:Name="Normal" />
@@ -42,7 +50,6 @@
4250
</VisualState>
4351
</VisualStateGroup>
4452
</VisualStateManager.VisualStateGroups>
45-
<ContentPresenter Content="{TemplateBinding Element}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" />
4653
</Grid>
4754
</ControlTemplate>
4855
</Setter.Value>

0 commit comments

Comments
 (0)