/// <summary> /// Fire when the user presses back. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BaconMan_OnBackButton(object sender, BaconBackend.BackButtonArgs e) { if (e.IsHandled) { return; } // Kill it if we are. e.IsHandled = ToggleFullScreen(false); }
/// <summary> /// Fired when the user tapped go back. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BaconMan_OnBackButton(object sender, BaconBackend.BackButtonArgs e) { if (e.IsHandled) { return; } // If the presenter is open close it and mark the back handled. if (ui_globalContentPresenter.State != GlobalContentStates.Idle) { ui_globalContentPresenter.Close(); e.IsHandled = true; } }
/// <summary> /// Fired when the user presses back. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BaconMan_OnBackButton(object sender, BaconBackend.BackButtonArgs e) { if (e.IsHandled) { return; } // If we are full screen reset the scroller which will take us out. if (_baseContentPanel.IsFullscreen) { e.IsHandled = true; ui_scrollViewer.ChangeView(null, null, _minZoomFactor); } }
/// <summary> /// Fired when the back button is pressed. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BaconMan_OnBackButton(object sender, BaconBackend.BackButtonArgs e) { if (e.IsHandled) { return; } // Don't do anything while we are in the background. if (!_mIsVisible) { return; } // We will always handle everything. We will ask the user if they want to leave an if so // call back ourselves. e.IsHandled = HasInfoToDraft(); if (e.IsHandled) { PrmoptUserForBackout(); } }