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