public void NavigateToSecondPageTVShows(MEItemTVShow tvshow) { if (!this.Frame.CanGoBack) { SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible; SystemNavigationManager.GetForCurrentView().BackRequested += GoBack_event; } this.onNavigated = (e) => { var vm = (VMSecondPageTVShow)(e.Content as SecondPageTVShows).DataContext; vm.TVShow = tvshow; }; this.Frame.Navigated += RootFrame_Navigated; this.Frame.Navigate(typeof(SecondPageTVShows)); }
internal void didClickTVShow(MEItemTVShow sender) { if (sender != null) { navigationService.NavigateToSecondPageTVShows(sender); } }