Maui/XAML: Specific Navigation Pattern W/ Login page (no back) and Shell/NavigationPage #17590
Unanswered
stevencreaney
asked this question in
Q&A
Replies: 1 comment
-
There are basically three ways to do navigation.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I need some assistance, mainly with a good pattern for accomplishing this specific pattern of navigation.
-Login
-Home
-Appointments
-Details (by appointment)
-...many subviews for business functions
-Notifications
-Reports
-Report (by id)
What I'm struggling with is how to accomplish the Login page to Home. The login page MUST be shown right away (users cannot use the app at all unless authenticated using MSAL). Once logged in, then navigate to the Home page. The user cannot go back to the Login page, I do not want to show the back button.
I've tried doing NavigationPages, but I don't see how to do Deferrals when navigating, so loading/saving data is difficult without completely rolling my own navigation.
I've tried using a Shell, but I can't find how to properly 'hide' the Login page from the shell navigation.
I've also tried loading right to the login page, then replacing MainPage with my Shell, but I just get 'No installed components were detected.'
What is a good practice/pattern for doing something like this? Frame navigation in UWP was super easy, however, this really seems to be difficult to get into complex business scenarios.
Beta Was this translation helpful? Give feedback.
All reactions