Example #1
0
        /// <summary>
        /// Fire when the user presses back.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BaconMan_OnBackButton(object sender, OnBackButtonArgs e)
        {
            if (e.IsHandled)
            {
                return;
            }

            // Kill it if we are.
            e.IsHandled = ToggleFullScreen(false);
        }
        /// <summary>
        /// Fired when the user presses back.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BaconMan_OnBackButton(object sender, OnBackButtonArgs e)
        {
            if (e.IsHandled)
            {
                return;
            }

            // If we are full screen reset the scroller which will take us out.
            if (m_base.IsFullscreen)
            {
                e.IsHandled = true;
                ui_scrollViewer.ChangeView(null, null, m_minZoomFactor);
            }
        }
        /// <summary>
        /// Fired when the user tapped go back.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BaconMan_OnBackButton(object sender, OnBackButtonArgs 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;
            }
        }
Example #4
0
        /// <summary>
        /// Fired when the back button is pressed.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void BaconMan_OnBackButton(object sender, OnBackButtonArgs e)
        {
            if (e.IsHandled)
            {
                return;
            }

            // Don't do anything while we are in the background.
            if (!m_isVisible)
            {
                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();
            }
        }