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