Skip to content

Commit

Permalink
Add Opaque Background to NavigationView ContentGrid (#4707)
Browse files Browse the repository at this point in the history
* add NavigationViewContentBackground to contentGrid

* update verification files
  • Loading branch information
karkarl committed Apr 2, 2021
1 parent bb55f85 commit 8fc91ee
Show file tree
Hide file tree
Showing 37 changed files with 39 additions and 36 deletions.
2 changes: 1 addition & 1 deletion dev/NavigationView/NavigationView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@
</SplitView.Pane>

<SplitView.Content>
<Grid x:Name="ContentGrid">
<Grid x:Name="ContentGrid" Background="{ThemeResource NavigationViewContentBackground}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
Expand Down
3 changes: 3 additions & 0 deletions dev/NavigationView/NavigationView_rs1_themeresources.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<StaticResource x:Key="NavigationViewDefaultPaneBackground" ResourceKey="SolidBackgroundFillColorBaseBrush" />
<StaticResource x:Key="NavigationViewExpandedPaneBackground" ResourceKey="ControlFillColorTransparentBrush" />
<StaticResource x:Key="NavigationViewTopPaneBackground" ResourceKey="SolidBackgroundFillColorBaseBrush" />
<StaticResource x:Key="NavigationViewContentBackground" ResourceKey="SolidBackgroundFillColorBaseBrush" />

<StaticResource x:Key="NavigationViewItemBackground" ResourceKey="SubtleFillColorTransparentBrush" />
<StaticResource x:Key="NavigationViewItemBackgroundPointerOver" ResourceKey="SubtleFillColorSecondaryBrush" />
Expand Down Expand Up @@ -88,6 +89,7 @@
<StaticResource x:Key="NavigationViewDefaultPaneBackground" ResourceKey="SolidBackgroundFillColorBaseBrush" />
<StaticResource x:Key="NavigationViewExpandedPaneBackground" ResourceKey="ControlFillColorTransparentBrush" />
<StaticResource x:Key="NavigationViewTopPaneBackground" ResourceKey="SolidBackgroundFillColorBaseBrush" />
<StaticResource x:Key="NavigationViewContentBackground" ResourceKey="SolidBackgroundFillColorBaseBrush" />

<StaticResource x:Key="NavigationViewItemBackground" ResourceKey="SubtleFillColorTransparentBrush" />
<StaticResource x:Key="NavigationViewItemBackgroundPointerOver" ResourceKey="SubtleFillColorSecondaryBrush" />
Expand Down Expand Up @@ -160,6 +162,7 @@
<StaticResource x:Key="NavigationViewDefaultPaneBackground" ResourceKey="SystemChromeMediumColor" />
<StaticResource x:Key="NavigationViewExpandedPaneBackground" ResourceKey="SystemColorWindowColor" />
<StaticResource x:Key="NavigationViewTopPaneBackground" ResourceKey="SystemChromeMediumHighColor" />
<StaticResource x:Key="NavigationViewContentBackground" ResourceKey="SystemChromeMediumColor" />

<StaticResource x:Key="NavigationViewItemBackground" ResourceKey="SystemControlBackgroundBaseLowBrush" />
<StaticResource x:Key="NavigationViewItemBackgroundPointerOver" ResourceKey="SystemControlHighlightListLowBrush" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2467,7 +2467,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2467,7 +2467,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2467,7 +2467,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2380,7 +2380,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2380,7 +2380,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2388,7 +2388,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2388,7 +2388,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2388,7 +2388,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2467,7 +2467,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2467,7 +2467,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2467,7 +2467,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2380,7 +2380,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2380,7 +2380,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2779,7 +2779,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2779,7 +2779,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2779,7 +2779,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2749,7 +2749,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2749,7 +2749,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5308,7 +5308,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5308,7 +5308,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5308,7 +5308,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5285,7 +5285,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5285,7 +5285,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2056,7 +2056,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2056,7 +2056,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2056,7 +2056,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2046,7 +2046,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2046,7 +2046,7 @@
CornerRadius=0,0,0,0
BorderThickness=0,0,0,0
BorderBrush=[NULL]
Background=[NULL]
Background=#FFF3F3F3
Name=ContentGrid
Margin=0,0,0,0
FocusVisualSecondaryThickness=1,1,1,1
Expand Down

0 comments on commit 8fc91ee

Please sign in to comment.