Skip to content

Instantly share code, notes, and snippets.

@mallibone
Created September 24, 2017 07:53
Embed
What would you like to do?
public partial class App : Application
{
public App()
{
InitializeComponent();
NavigationService.Configure("MainPage", typeof(Views.MainPage));
NavigationService.Configure("ModalNavigationPage", typeof(Views.ModalNavigationPage));
NavigationService.Configure("PushNavigationPage", typeof(Views.PushNavigationPage));
var mainPage = ((ViewNavigationService) NavigationService).SetRootPage("MainPage");
MainPage = mainPage;
}
public static INavigationService NavigationService { get; } = new ViewNavigationService();
// ....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment