private void OnBackButtonClicked(object sender, object e) { var backEventArgs = new BackClickedEventArgs { Cancel = false }; InvokeOnBackClick(backEventArgs); if (backEventArgs.Cancel) { return; } if (_hostPopup != null) { _hostPopup.IsOpen = false; } // TEMP: wrapping this to ensure back button doesn't happen in snap/portrait if (ApplicationView.Value != ApplicationViewState.Snapped) { SettingsPane.Show(); } }
private void InvokeOnBackClick(BackClickedEventArgs args) { var handler = BackClicked; if (handler != null) { handler(this, args); } }
private void OnBackButtonClicked(object sender, object e) { var backEventArgs = new BackClickedEventArgs { Cancel = false }; InvokeOnBackClick(backEventArgs); if (backEventArgs.Cancel) return; if (_hostPopup != null) { _hostPopup.IsOpen = false; } // TEMP: wrapping this to ensure back button doesn't happen in snap/portrait if (ApplicationView.Value != ApplicationViewState.Snapped) { SettingsPane.Show(); } }
private void InvokeOnBackClick(BackClickedEventArgs args) { var handler = BackClicked; if (handler != null) handler(this, args); }