Beispiel #1
0
        private void OnBackButtonTapped(object sender, object e)
        {
            var onBackKeyPressEventArgsArgs = new OnBackKeyPressEventArgsArgs
                {
                    Cancel = false
                };
            
            InvokeOnBackKeyPress(onBackKeyPressEventArgsArgs);

            if (onBackKeyPressEventArgsArgs.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();
            }
            
        }
Beispiel #2
0
 private void InvokeOnBackKeyPress(OnBackKeyPressEventArgsArgs args)
 {
     OnBackKeyPressEventArgs handler = OnBackKeyPress;
     if (handler != null) handler(this, args);
 }