You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On App Start we check if this is the FirstRunEver. If not go to HomeViewModel else go to FirstRunViewModel. FirstRun has no Navigation bar. One we introduce the app in FirstRun we navigate the user to HomeViewModel. That page also has no Navigation bar
The way I have currently implemented this is that in the PrismAppBuilder action on app start I have:
That to me looks like restarting the Navigation based on the use of UseAbsoluteNavigation. Why AddSegment rather than simply navigating to RootPage?
As I was unsure of the use of UseAbsoluteNavigation and AddSegment I went with NavigateAsync($"../{typeof(HomeViewModel).Name}"). As there is nothing else in the Naviogation stack other than FirstRunViewModel at that stage I assume I am achieving the same thing as , UseAbsoluteNavigation yes?
Is it wrong that I am loading FirstRunViewModel in a NavigationPage?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
On App Start we check if this is the FirstRunEver. If not go to HomeViewModel else go to FirstRunViewModel. FirstRun has no Navigation bar. One we introduce the app in FirstRun we navigate the user to HomeViewModel. That page also has no Navigation bar
The way I have currently implemented this is that in the PrismAppBuilder action on app start I have:
When moving the user on from FirstRunViewModel I have:
await this.NavigationService.NavigateAsync($"../{typeof(HomeViewModel).Name}");
but I did look at the the PrismMauiDemo and in particular SplashPageViewModel and saw this:
That to me looks like restarting the Navigation based on the use of UseAbsoluteNavigation. Why AddSegment rather than simply navigating to RootPage?
As I was unsure of the use of
UseAbsoluteNavigation
andAddSegment
I went withNavigateAsync($"../{typeof(HomeViewModel).Name}")
. As there is nothing else in the Naviogation stack other than FirstRunViewModel at that stage I assume I am achieving the same thing as , UseAbsoluteNavigation yes?Is it wrong that I am loading FirstRunViewModel in a NavigationPage?
Beta Was this translation helpful? Give feedback.
All reactions