示例#1
0
        public override void OnBackPressed()
        {
            if (modularSearchView.IsDisplayed)
            {
                modularSearchView.Hide();
                return;
            }
            if (thumbnailGrid.IsDisplayed)
            {
                thumbnailGrid.Hide();
                return;
            }
            if (pdfOutlineView.IsDisplayed)
            {
                pdfOutlineView.Hide();
                return;
            }

            base.OnBackPressed();
        }
        public bool OnBackPressed()
        {
            if (modularSearchView.IsDisplayed)
            {
                modularSearchView.Hide();
                return(true);
            }

            if (thumbnailGrid.IsDisplayed)
            {
                thumbnailGrid.Hide();
                return(true);
            }

            if (pdfOutlineView.IsDisplayed)
            {
                pdfOutlineView.Hide();
                return(true);
            }

            return(false);
        }