Navigation

Part of Template 10

Navigate with Parameter

private void Goto2(object sender, Windows.UI.Xaml.RoutedEventArgs e)
{
  var app = App.Current as Common.BootStrapper;
  var nav = app.NavigationService;
  nav.Navigate(typeof(Views.Page2), "MyParameter");
}

Read Parameter

public override void OnNavigatedTo(string Parameter, NavigationMode mode, IDictionary<string, object> state)
{
  this.Parameter = Parameter?.ToString() ?? "Empty";
}