public static void MasterNavigationHandler( object sender, BackRequestedEventArgs e ) { foreach( EventHandler<XBackRequestedEventArgs> H in NavigationHandlers.ToArray() ) { XBackRequestedEventArgs x = new XBackRequestedEventArgs( e ); H( sender, x ); if ( x.Handled ) break; } }
private void InnerFrameGoBack( object sender, XBackRequestedEventArgs e ) { NavigationHandler.OnNavigatedBack -= InnerFrameGoBack; if( Frame.CanGoBack ) { Frame.GoBack(); e.Handled = true; } }
private void ClosePopup( object sender, XBackRequestedEventArgs e ) { // Restart Required if ( RestartMask.State == ControlState.Reovia ) return; // Close the popup first if ( PopupPage.State == ControlState.Reovia ) { PopupPage.State = ControlState.Foreatii; e.Handled = true; return; } // Go back LoadingMask.HandleBack( Frame, e ); Dispose(); }
private void Exit( object sender, XBackRequestedEventArgs e ) { Windows.ApplicationModel.Core.CoreApplication.Exit(); }
private void OnBackRequested( object sender, XBackRequestedEventArgs e ) { if ( RootFrame.CanGoBack ) { e.Handled = true; RootFrame.GoBack(); } }
private void OnBackRequested( object sender, XBackRequestedEventArgs e ) { BackMask.HandleBack( Frame, e ); Dispose(); }
private void OnBackRequested( object sender, XBackRequestedEventArgs e ) { // Close the settings first if ( Overlay.State == ControlState.Reovia ) { Overlay.State = ControlState.Foreatii; Settings.Themes.ContentReader Settings = OverlayFrame.Content as Settings.Themes.ContentReader; MainSplitView.PanelBackground = ContentPane.BackgroundBrush; FocusHelper.DataContext = new AssistContext(); // If the overlay frame content is settings, and the settings is changed if ( Settings != null && Settings.NeedRedraw ) Redraw(); e.Handled = true; return; } if ( CurrManiState != ManiState.NORMAL || ContentSlideBack.GetCurrentState() == ClockState.Active ) { e.Handled = true; ReaderSlideBack(); return; } if ( MainSplitView.State == PaneStates.Opened ) { e.Handled = true; MainSplitView.ClosePane(); return; } StringResources stx = new StringResources( "LoadingMessage" ); RenderMask.Text = stx.Text( "ProgressIndicator_PleaseWait" ); RenderMask.HandleBack( Frame, e ); Dispose(); }
private void StepSubProcedures( object sender, XBackRequestedEventArgs e ) { if ( 0 < ProcChains.Count ) { e.Handled = true; SelectedItem = ProcChains.Last(); EditProcedure(); ProcChains.Remove( SelectedItem ); if ( 0 < ProcChains.Count ) { SubEdit( ProcChains.Last() ); return; } } if( !e.Handled ) { Dispose(); return; } PM = RootManager; UpdateVisualData(); }
private void DisableBack( object sender, XBackRequestedEventArgs e ) { e.Handled = true; }
private void BackAgainToExit( XBackRequestedEventArgs e ) { if( TransitionDisplay.GetState( BackAgainMessage ) == TransitionState.Active ) { Windows.ApplicationModel.Core.CoreApplication.Exit(); return; } e.Handled = true; ShowBackMessage(); }
private void OnBackRequested( object sender, XBackRequestedEventArgs e ) { if( !Frame.CanGoBack ) { if( MainSplitPane.State == PaneStates.Opened ) { MainSplitPane.ClosePane(); e.Handled = true; return; } BackAgainToExit( e ); } }
private void NavigationHandler_OnNavigatedBack( object sender, XBackRequestedEventArgs e ) { NavigationHandler.OnNavigatedBack -= NavigationHandler_OnNavigatedBack; PopupParent.Close(); e.Handled = true; }
private void OnBackRequested( object sender, XBackRequestedEventArgs e ) { if ( !Frame.CanGoBack ) { e.Handled = true; PopupFrame.Content = null; } }