Пример #1
0
 private void ItemGridView_OnItemClick(object sender, ItemClickEventArgs e)
 {
     if (e.ClickedItem is MovieVm)
     {
         App.MainVm.GoTo((MovieVm)e.ClickedItem);
     }
     if (e.ClickedItem is TVShowVm)
     {
         var iRef = new ItemsSourceReference(ItemsSourceType.TVShow, ((TVShowVm)e.ClickedItem).ID);
         this.Frame.Navigate(typeof(GeneralDetailPage), iRef.ToString());
     }
     if (e.ClickedItem is AlbumVm)
     {
         this.Frame.Navigate(typeof(AlbumPage), ((AlbumVm)e.ClickedItem).Id);
     }
     if (e.ClickedItem is CastVm)
     {
         Frame.Navigate(typeof(PersonDetailPage), ((CastVm)e.ClickedItem).Name);
     }
 }
Пример #2
0
 public void GotoMovie(ItemsSourceReference itemsReference)
 {
     Navigate(typeof(GeneralDetailPage), itemsReference.ToString());
 }
Пример #3
0
 public void GotoMovies(ItemsSourceReference itemsReference)
 {
     Navigate(typeof(MovieOverviewPage), itemsReference.ToString());
 }