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; } } }; }
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; } } }; }