/// <summary> /// On escape, go back to normal screen and navigation ui. /// </summary> /// <param name="e">Event args describing the event.</param> private void OnEscapeKeyPress(KeyEventArgs e) { // Restore viewing mode RestoreViewingMode(); ContentPane.Focus(); e.Handled = true; }
/// <summary> /// Switches the viewing mode between full screen and windowed. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">Arguments describing the routed event.</param> private void OnSwitchFullScreenCommand(object sender, ExecutedRoutedEventArgs e) { UpdateViewingModeFullScreen(); ContentPane.Focus(); }