protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); selectedShow = (TV_Show)e.Parameter; // get parameter showTitle.Text = selectedShow.Title; channel.Text = selectedShow.Channel; screeningTime.Text = selectedShow.ScreeningTime; synopsis.Text = selectedShow.Synopsis; Image img = (Image)this.FindName("showImage"); img.Source = new BitmapImage(new Uri(selectedShow.ShowImageString)); List <CastMember> castList = new List <CastMember>(); castList = selectedShow.GetCastMembers(); castGrid.ItemsSource = castList; }
private void ShowsGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) { TV_Show selected = (TV_Show)showsGrid.SelectedItem; this.Frame.Navigate(typeof(ShowDetailsPage), selected); }