Skip to content

Instantly share code, notes, and snippets.

@mallibone
Created September 24, 2017 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mallibone/9135329987612d9904e25c143f67687a to your computer and use it in GitHub Desktop.
Save mallibone/9135329987612d9904e25c143f67687a to your computer and use it in GitHub Desktop.
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