maui
                                
                                 maui copied to clipboard
                                
                                    maui copied to clipboard
                            
                            
                            
                        [Spec] Add better parameters for navigation args
Description
Currently the navigation args provide no useful information:
We added these args very early on so that we'd be setup to add better information later on.
Here are some suggested additional properties
- PreviousPage
- CurrentPage
- The navigation behavior performed (pop, push, reset, etc...)
Any News around this one @PureWeen ? This is the main show stopper for me to adopt shell?
Any news around this?
It has been +2 years since I've reported this bug for MSFT and they didn't come up with a proper solution, so to save your precious time consider completely ditching MAUI AppShell for now, and use the following library to workaround this issue: https://github.com/naveasy/Naveasy
Any news on this @PureWeen @jfversluis @samhouts ?
.NET 9 is just around the corner and I have serious doubt if they are gonna release it despite of asking for it since early days of .NET 6 many years ago with a bunch of details, samples and etc as you can see on the following Issue (which they shamelessly closed without any solution when it reached 2yo and reached the 1st most commented issue here on MAUI GH repo, instead of keeping it open until this api design flaw gets fixed).
https://github.com/dotnet/maui/issues/7354
In the OnNavigatedTo event of Page, PreviousPage of NavigatedToEventArgs is declared as internal, so it cannot be used.
Is there a reason why you declared PreviousPage as internal? I want PreviousPage to be declared as public.
namespace Microsoft.Maui.Controls { public sealed class NavigatedToEventArgs : EventArgs { internal NavigatedToEventArgs(Page previousPage) { PreviousPage = previousPage; }
internal Page PreviousPage { get; }  <-- Why internal?
} }
In the OnNavigatedTo event of Page, PreviousPage of NavigatedToEventArgs is declared as internal, so it cannot be used.
Is there a reason why you declared PreviousPage as internal? I want PreviousPage to be declared as public.
create a new PR for it. There was one, which was closed to no activity from the author.
See How to use PreviousPage which is hidden internally.
https://github.com/dotnet/maui/pull/21754