Пример #1
0
 // Handles system-level BackRequested events and page-level events
 private void NavViewControl_BackRequested(NavigationView sender, NavigationViewBackRequestedEventArgs args)
 {
     if (MasterFrame.CanGoBack)
     {
         MasterFrame.GoBack();
     }
 }
Пример #2
0
 private void View_BackRequested(object sender, BackRequestedEventArgs e)
 {
     if (DetailFrame.CanGoBack)
     {
         DetailFrame.GoBack();
         e.Handled = true;
     }
     else if (MasterFrame.CanGoBack)
     {
         MasterFrame.GoBack();
         e.Handled = true;
     }
 }