Ejemplo n.º 1
0
        /// <summary>
        /// Called by the app when the back button is pressed
        /// </summary>
        /// <param name="isHandled">Reference variable whether the back navigation has been handled.</param>
        public void OnBackButton_Fired(ref bool isHandled)
        {
            // Fire the event.
            OnBackButtonArgs args = new OnBackButtonArgs();

            m_onBackButton.Raise(this, args);

            // If someone handled it don't navigate back
            if (args.IsHandled)
            {
                isHandled = true;
                return;
            }

            // Tell the UI to go back. Technically it could just listen to the event
            // and check the handled var, but this ensures it is always last.
            isHandled = m_backendActionListener.NavigateBack();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Called by the app when the back button is pressed
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void OnBackButton_Fired(ref bool isHandled)
        {
            // Fire the event.
            OnBackButtonArgs args = new OnBackButtonArgs();
            m_onBackButton.Raise(this, args);

            // If someone handled it don't navigate back
            if(args.IsHandled)
            {
                isHandled = true;
                return;
            }

            // Tell the UI to go back. Technically it could just listen to the event
            // and check the handled var, but this ensures it is always last.
            isHandled = m_backendActionListener.NavigateBack();
        }