Skip to content

Commit

Permalink
fix(NavigationView): Avoid crash in NavBar for missing ContentControl
Browse files Browse the repository at this point in the history
  • Loading branch information
kazo0 committed Jun 7, 2022
1 parent 1aa988b commit 935e695
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/library/Uno.Material/Styles/Controls/v2/NavigationView.xaml
Expand Up @@ -1205,7 +1205,17 @@
</Grid.RowDefinitions>

<!-- DisplayMode top -->
<StackPanel x:Name="TopNavArea" />
<StackPanel x:Name="TopNavArea">

<!-- As of Microsoft.UI.Xaml 2.6.0-prerelease.210430001, PaneTitleOnTopPane must be present in the template -->
<ContentControl x:Name="PaneTitleOnTopPane"
Height="5"
VerticalAlignment="Stretch"
HorizontalAlignment="Center"
VerticalContentAlignment="Stretch"
HorizontalContentAlignment="Center"
Visibility="Collapsed" />
</StackPanel>

<!-- Displaymode (compact/minimal/normal) left -->
<SplitView x:Name="RootSplitView"
Expand Down

0 comments on commit 935e695

Please sign in to comment.