Skip to content

Instantly share code, notes, and snippets.

@nuitsjp
Created August 21, 2016 07:06
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 nuitsjp/55749ec0cc399af20104258951110525 to your computer and use it in GitHub Desktop.
Save nuitsjp/55749ec0cc399af20104258951110525 to your computer and use it in GitHub Desktop.
NavigationService Overview App.xaml.cs
protected override void OnInitialized()
{
InitializeComponent();
//NavigationService.NavigateAsync("MainPage?title=Hello%20from%20Xamarin.Forms");
NavigationService.NavigateAsync("NavigationPage/MainPage?title=Hello%20from%20Xamarin.Forms");
}
protected override void RegisterTypes()
{
Container.RegisterTypeForNavigation<NavigationPage>();
Container.RegisterTypeForNavigation<MainPage>();
Container.RegisterTypeForNavigation<SecondPage>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment