Is your feature request related to a problem? Please describe.
This will be the foundation of absolute navigation needed for #1. This would be a method that would clear any pages I already have and push a new page on top. An example might be when you are finishing a registration/login flow and want to move to the main part of an application.
Describe the solution you'd like
A new method that allows for absolute navigation.
Describe alternatives you've considered
N/A
Proposed APIs
If possible, try to propose how the API might look. For example:
// INavigationService
Task ResetStackAndPush<T>()
where T : Page
Task ResetStackAndPush<T>(NavigationParameters parameters)
where T : Page
Additional context
Implementation thoughts:
Should OnNavigatedFrom be called for all pages that were removed?
What does Shell do?
Only the top page?
If all pages, what order should OnNavigatedFrom be called for them all?
It is probably a good idea to have an internal ResetStack method that this new public method would use
Is your feature request related to a problem? Please describe. This will be the foundation of absolute navigation needed for #1. This would be a method that would clear any pages I already have and push a new page on top. An example might be when you are finishing a registration/login flow and want to move to the main part of an application.
Describe the solution you'd like A new method that allows for absolute navigation.
Describe alternatives you've considered N/A
Proposed APIs If possible, try to propose how the API might look. For example:
Additional context Implementation thoughts:
OnNavigatedFrom
be called for all pages that were removed?OnNavigatedFrom
be called for them all?ResetStack
method that this new public method would use