I am trying to create an application with a login page as the first page.
As soon as the user logs in, the pages that appear after that will be in the standard organization of the page stack, so I can easily use the design in Navigation and wrap everything on the navigation pages.
eg.
Login Page -> MainAppPage |-> Category1Page -> Cat1SubPage |-> Category2Page -> Cat2SubPage
I understand that I have to wrap MainAppPage with new NavigationPage() , and then I will have access to the Navigation object, allowing me to do such things:
await this.Navigation.PushAsync(new Category1Page());
And the various platforms will give me automatic back button support to return to the previous page.
But I donβt want the user to move from LoginPage -> MainAppPage this way, because I donβt want the backbutton to return them back to Login, without having to explicitly click the logout button.
So, how should I handle this first page transition from the LoginPage -> MainApp site.
Is there an alternative way to have 2 Primary pages and change them among themselves? Or is there a way to intercept back button requests on MainAppPage and drop them?
Not having found most of the information in the documentation, but this seems like a fairly standard requirement, so PEBKAC is possible
source share