|
4 | 4 |
|
5 | 5 | <ResourceDictionary.ThemeDictionaries>
|
6 | 6 | <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}" /> |
9 | 11 | </ResourceDictionary>
|
10 | 12 | <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}" /> |
13 | 17 | </ResourceDictionary>
|
14 | 18 | </ResourceDictionary.ThemeDictionaries>
|
15 | 19 |
|
16 | 20 | <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}" /> |
25 | 29 | <Setter Property="GripperForeground" Value="{ThemeResource SystemControlForegroundAltHighBrush}" />
|
26 | 30 | <Setter Property="Template">
|
27 | 31 | <Setter.Value>
|
28 | 32 | <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}" /> |
30 | 38 | <VisualStateManager.VisualStateGroups>
|
31 | 39 | <VisualStateGroup x:Name="GridSplitterStates">
|
32 | 40 | <VisualState x:Name="Normal" />
|
|
42 | 50 | </VisualState>
|
43 | 51 | </VisualStateGroup>
|
44 | 52 | </VisualStateManager.VisualStateGroups>
|
45 |
| - <ContentPresenter Content="{TemplateBinding Element}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" /> |
46 | 53 | </Grid>
|
47 | 54 | </ControlTemplate>
|
48 | 55 | </Setter.Value>
|
|
0 commit comments