Prism Xamarin.forms Inavigationservice Understanding
I am struggling to understand how the PRISM INavigationService maps to the standard Navigation.PushAsync provided by Xamarin Forms. I have an application that I have started using
Solution 1:
Prism's INavigationService
essentially maps to the Xamarin Forms INavigation
in this way: INavigationService.NavigateAsync
=> INavigation.PushAsync
(or PushModalAsync
if you set the useModal flag to true), & INavigationService.GoBackAsync
=> INavigation.PopAsync
.
The INavigationService
uses the container to resolve any pages that you specify in the Uri that you pass it and then pushes them onto the Navigation Stack. You may want to check out the various samples available, including the "HamburgerMenu" project which shows the use of a MasterDetailPage
and it uses a LoginPage.
Post a Comment for "Prism Xamarin.forms Inavigationservice Understanding"