BurkusCat / Burkus.Mvvm.Maui

A simple MVVM framework for .NET MAUI. It provides: navigation, lifecycle events, parameter passing, native dialog abstractions, and testability.
MIT License
24 stars 5 forks source link

[Feature] Advanced navigation method: ResetStackAndPush #12

Closed BurkusCat closed 9 months ago

BurkusCat commented 9 months ago

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: