Example #1
0
        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();
            }
        }
Example #2
0
        private void InvokeOnBackClick(BackClickedEventArgs args)
        {
            var handler = BackClicked;

            if (handler != null)
            {
                handler(this, args);
            }
        }