Exemple #1
0
        protected override bool OnBackButtonPressed()
        {
            if (PopupControl.OpenedPopupsCount == 0 || PopupControl.IsKeyboardVisible())
            {
                return(false);
            }

            PopupControl.CloseTopPopup();
            return(true);
        }
        protected override bool OnBackButtonPressed()
        {
            if (PopupControl.OpenedPopupsCount == 0 || PopupControl.IsKeyboardVisible())
            {
                App.Current.MainPage = new MainPage();
            }
            else
            {
                PopupControl.CloseTopPopup();
            }

            return(true);
        }