Issue with using NavigationView with nested items #19291
-
I am trying to use NavigationView to navigate between pages in my system, but when I attempt to use nested items, the page ends up being placed in the main shell instead of the Grid that is responsible for the content inside the NavigationView. Does anyone know a solution to this issue? 1 - First Page - Placed in the Grid - OK 2 - Second Page - Placed in the main shell - BUG 3 - MainPage Code |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @RaulShinaede, Thank you for your question! Generally, navigation works the same whether the Navigation Item is nested or not. You can take a look at these links for reference: https://github.com/morning4coffe-dev/recurrents/blob/dev/uno-singleproject/src/Recurrents/Presentation/MainPage.xaml and here: https://github.com/morning4coffe-dev/recurrents/blob/d108142eadac83e27301dbcf26256138797836c2/src/Recurrents/App.xaml.cs#L116. I for example use Let me know if this helps! Otherwise, please share a full project sample, and I’ll try to adjust it accordingly. |
Beta Was this translation helpful? Give feedback.
Hey @RaulShinaede,
Thank you for your question! Generally, navigation works the same whether the Navigation Item is nested or not. You can take a look at these links for reference: https://github.com/morning4coffe-dev/recurrents/blob/dev/uno-singleproject/src/Recurrents/Presentation/MainPage.xaml and here: https://github.com/morning4coffe-dev/recurrents/blob/d108142eadac83e27301dbcf26256138797836c2/src/Recurrents/App.xaml.cs#L116. I for example use
ContentControl
for the frame display.Let me know if this helps! Otherwise, please share a full project sample, and I’ll try to adjust it accordingly.