protected override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); selectedCastMem = (CastMember)e.Parameter; // get parameter Image img = (Image)this.FindName("castMemberImage"); img.Source = new BitmapImage(new Uri(selectedCastMem.ImageSource)); CastMemberName.Text = selectedCastMem.Name.ToString(); String dob = selectedCastMem.DOB.ToString(); dob = dob.Substring(0, 8); CastMemberDOB.Text = "Born: " + dob; CastMemberBio.Text = selectedCastMem.MiniBio; CastMemberRole.Text = " As: " + selectedCastMem.Role.Description; CastMemActiveFrom.Text = "Active From: " + selectedCastMem.Role.ActiveFrom; CastMemRoleBio.Text = selectedCastMem.Role.RoleBio; NotableVidDesc.Text = selectedCastMem.Role.SceneDesc; Uri filePath = new Uri(selectedCastMem.Role.NotableSceneSource); NotableSceneVid.Source = MediaSource.CreateFromUri(filePath); SetStars(); }
private void CastGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) { CastMember selected = (CastMember)castGrid.SelectedItem; this.Frame.Navigate(typeof(CastMemberDetails), selected); }
public void AddCastMember(CastMember castMem) { castMembers.Add(castMem); }