示例#1
0
 /// <summary>
 /// Navigates to previous page if exists
 /// </summary>
 public void GoToPreviousPage()
 {
     if (PreviousPages.Count != default(int))
     {
         if (IoC.IoC.TitleBar.LogoutButtonVisible)
         {
             IoC.IoC.TitleBar.LogoutButtonVisible = false;
         }
         GoToPage(PreviousPages.Pop(), true);
     }
 }
示例#2
0
        /// <summary>
        /// Navigates to the specified page
        /// </summary>
        /// <param name="page">The page to go to</param>
        /// <param name="goBack">Flag that indicates method doesn't push previous page to stack</param>
        protected override void GoToPage(ApplicationPage page, bool goBack = false)
        {
            if (!PreviousPages.Contains(page) && !goBack)
            {
                PreviousPages.Push(CurrentPage);
            }

            // Set the current page
            CurrentPage = page;

            // On main page visible main title bar
            MainTitleBarVisible = CurrentPage == ApplicationPage.Main;

            // Hide bottom bar on ShowCertificate page
            BottomBarVisible = CurrentPage != ApplicationPage.ShowCertificate;
        }