public void GoBack() { if (AppFrame?.CanGoBack == true) { AppFrame.GoBack(); } }
private void BackCommandExecute() { if (AppFrame.CanGoBack) { AppFrame.GoBack(); } }
private void MainPage_BackRequested(object sender, BackRequestedEventArgs e) { if (AppFrame.CanGoBack) { AppFrame.GoBack(); } }
public AppShell() { InitializeComponent(); if (!DesignMode.DesignModeEnabled) { Current = this; AppFrame.Navigating += AppFrameOnNavigating; LayoutUpdated += (sender, args) => OnPaneSizeChanged(); Loaded += (sender, args) => { togglePaneButton.Focus(FocusState.Programmatic); OnPaneSizeChanged(); SetSelectedMenuItem(selectedMenuItem); }; SystemNavigationManager.GetForCurrentView().BackRequested += (sender, e) => { if (!e.Handled && AppFrame.CanGoBack) { e.Handled = true; AppFrame.GoBack(); } }; } }
private void SystemNavigationManager_BackRequested(object sender, BackRequestedEventArgs e) { if (!e.Handled && AppFrame.CanGoBack) { e.Handled = true; AppFrame.GoBack(); } }
/// <summary> /// Navigates to the previous page in the navigation history. /// </summary> public void GoBack() { System.Diagnostics.Debug.Assert(AppFrame != null); if (AppFrame.CanGoBack) { AppFrame.GoBack(); } }
public void OnBackRequested(object sender, BackRequestedEventArgs e) { if (AppFrame.CanGoBack) { e.Handled = true; AppFrame.GoBack(); } }
private void Navmgr_BackRequested(object sender, BackRequestedEventArgs e) { if (AppFrame.CanGoBack) { AppFrame.GoBack(); e.Handled = true; } }
private void OnBackRequested(object sender, BackRequestedEventArgs e) { if (AppFrame.CanGoBack) { e.Handled = true; AppFrame.GoBack(); shell.ClearSelection(); } }
private void DeviceStates_CurrentStateChanged(object sender, VisualStateChangedEventArgs e) { if (e.NewState == Medium) { if (AppFrame.CurrentSourcePageType != typeof(MainPage)) { AppFrame.GoBack(); } } }
private void Global_KeyDown(CoreWindow sender, KeyEventArgs args) { if (args.KeyStatus.RepeatCount == 1) { switch (args.VirtualKey) { case VirtualKey.Back: AppFrame.GoBack(); args.Handled = true; break; } } }
private void SystemNavigationManager_BackRequested(object sender, BackRequestedEventArgs e) { if (PopupManager.Popup.IsOpen) { PopupManager.Popup.IsOpen = false; e.Handled = true; } if (!e.Handled && AppFrame.CanGoBack) { e.Handled = true; AppFrame.GoBack(); } }
private void Shell_BackRequested(object sender, BackRequestedEventArgs e) { if (AppFrame == null) { return; } // Navigate back if possible, and if the event has not // already been handled . if (AppFrame.CanGoBack && e.Handled == false) { e.Handled = true; AppFrame.GoBack(); } }
private void BackRequested(ref bool handled) { // Get a hold of the current frame so that we can inspect the app back stack. if (AppFrame == null) { return; } // Check to see if this is the top-most page on the app back stack. if (AppFrame.CanGoBack && !handled) { // If not, set the event to handled and go back to the previous page in the app. handled = true; AppFrame.GoBack(); } }
private void deleteNotaCommandExecute() { try { _notaService.DeleteNota(AuxNota); _dialogService.ShowMessage(traduce("MsgNotaBorrada"), traduce("NameApp")); //AppFrame.Navigate(typeof(MyNotes10.Views.MainPage)); if (AppFrame.CanGoBack) { AppFrame.GoBack(); } } catch (Exception ex) { _dialogService.ShowMessage(traduce("MsgNotaBorradaError") + " " + ex.Message, traduce("NameApp")); } }
public void NavigateBack_App() { AppFrame.GoBack(); }