Navigation View resize if collapse #680
Replies: 1 comment
-
Hello, I saw my error, my old code was: <Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<ui:NavigationView PaneDisplayMode="Left">
<ui:NavigationView.MenuItems>
<ui:NavigationViewItem Icon="Play" Content="Menu Item1" Tag="SamplePage1" />
<ui:NavigationViewItem Icon="Save" Content="Menu Item2" Tag="SamplePage2" />
<ui:NavigationViewItem Icon="Refresh" Content="Menu Item3" Tag="SamplePage3" />
<ui:NavigationViewItem Icon="Download" Content="Menu Item4" Tag="SamplePage4" />
</ui:NavigationView.MenuItems>
</ui:NavigationView>
<Grid Grid.Column="1">
<!-- my content --> instead the correct code is <ui:NavigationView PaneDisplayMode="Left">
<ui:NavigationView.MenuItems>
<ui:NavigationViewItem Icon="Play" Content="Menu Item1" Tag="SamplePage1" />
<ui:NavigationViewItem Icon="Save" Content="Menu Item2" Tag="SamplePage2" />
<ui:NavigationViewItem Icon="Refresh" Content="Menu Item3" Tag="SamplePage3" />
<ui:NavigationViewItem Icon="Download" Content="Menu Item4" Tag="SamplePage4" />
</ui:NavigationView.MenuItems>
<Grid>
<!-- my content --> simpler and working 😅 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am trying to replicate the behavior we can see on WinUI sample app:

As we can see when the WinUI collapse the content resize, instead in my application when it collapse a there is a blank space. Is it a known bug or I am missing something?
Beta Was this translation helpful? Give feedback.
All reactions