Create a gist now

Instantly share code, notes, and snippets.

@KooKiz /MainPage.xaml.cs Secret
Created Feb 21, 2016

What would you like to do?
public MainPage()
{
SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible;
this.NavigationService = new NavigationService();
this.NavigationService.BackRequested += this.OnBackRequested1;
this.NavigationService.SubscribeBefore(this.OnBackRequested2);
this.InitializeComponent();
}
private NavigationService NavigationService { get; }
private void OnBackRequested1(object sender, BackRequestedEventArgs e)
{
Debug.WriteLine("OnBackRequested1");
}
private void OnBackRequested2(object sender, BackRequestedEventArgs e)
{
Debug.WriteLine("OnBackRequested2");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment