Example #1
0
 private void ClearBackStackAfterReset(object sender, NavigationEventArgs e)
 {
     App.RootFrame.remove_Navigated(new NavigatedEventHandler(this, App.ClearBackStackAfterReset));
     if (e.get_NavigationMode() != null && e.get_NavigationMode() != 3)
     {
         return;
     }
     while (App.RootFrame.RemoveBackEntry() != null)
     {
     }
 }
Example #2
0
 private void CheckForResetNavigation(object sender, NavigationEventArgs e)
 {
     if (e.get_NavigationMode() == 4)
     {
         App.RootFrame.add_Navigated(new NavigatedEventHandler(this, App.ClearBackStackAfterReset));
     }
 }