예제 #1
0
 public PFeed()
 {
     this.InitializeComponent();
     App.ChosenIndex = 1;
     ArticleFrame.Navigate(typeof(BlankPage));
     SystemNavigationManager.GetForCurrentView().BackRequested += (s, a) =>
     {
         if (ArticleFrame.CanGoBack)
         {
             ArticleFrame.GoBack();
             a.Handled = true;
             if (!ArticleFrame.CanGoBack)
             {
                 App.CanNavigate = true;
             }
         }
     };
 }
예제 #2
0
 public PFavorites()
 {
     this.InitializeComponent();
     App.ChosenIndex = 2;
     App.CanNavigate = false;
     Windows.UI.Core.SystemNavigationManager.GetForCurrentView().BackRequested += (s, a) =>
     {
         if (ArticleFrame.CanGoBack)
         {
             ArticleFrame.GoBack();
             a.Handled = true;
             if (!ArticleFrame.CanGoBack)
             {
                 App.CanNavigate = true;
             }
         }
     };
 }