private void Back_Click(object sender, RoutedEventArgs e)
 {
     if (Frame1.CanGoBack)
     {
         Frame1.GoBack();
     }
     else
     {
         rootPage.Frame.GoBack();
     }
 }
示例#2
0
 private bool On_BackRequested()
 {
     if (!Frame1.CanGoBack)
     {
         return(false);
     }
     else
     {
         Frame1.GoBack();
         return(true);
     }
 }
示例#3
0
        void HardwareButtons_BackPressed(object sender, BackPressedEventArgs e)
        {
            if (Frame1 == null)
            {
                return;
            }

            if (Frame1.CanGoBack)
            {
                Frame1.GoBack();
                e.Handled = true;
            }
        }