wpfui
wpfui copied to clipboard
Navigation within container's page.
Is your feature request related to a problem? Please describe. It is very difficult to know I am on which page. When I navigate through the page's viewmodel the page actually navigates but doesn't indicate anything on the breadcrumb or the navigation item icon. The current selection goes away.
Describe the solution you'd like It would be better if we had the navigation within the container's page with breadcrumb like Dashboard > Create Product and a back arrow to navigate back.
Describe alternatives you've considered Introducing back arrow with breadcrumb when navigating through pages.
When using pages. There must be a root page in order to work with navigation. When I navigate to any page, the container's navigate to that page, which is fine. But if I continue to use the INavigationService to another page then it doesn't show the back arrow for navigating back.
Which is what I am suggesting to implement.
If you use any of the methods available under INavigation.Navigate
https://github.com/lepoco/wpfui/blob/65f206ea094a3e246075e34983962e7f0d153292/src/Wpf.Ui/Controls/Interfaces/INavigation.cs#L110
In the Navigate
and UpdateItems
methods, SelectedPageIndex
and Current
are updated, which allow you to easily determine which page is currently displayed.
https://github.com/lepoco/wpfui/blob/65f206ea094a3e246075e34983962e7f0d153292/src/Wpf.Ui/Controls/Navigation/NavigationBase.cs#L319
https://github.com/lepoco/wpfui/blob/65f206ea094a3e246075e34983962e7f0d153292/src/Wpf.Ui/Controls/Navigation/NavigationBase.cs#L442