コード例 #1
0
ファイル: ActorsView.xaml.cs プロジェクト: Isodome/MovieRack
 private void actorPoster_MouseUp(object sender, MouseButtonEventArgs e)
 {
     bigPicture = new BigPicture();
     BitmapImage posterBitmap = new BitmapImage();
     posterBitmap.BeginInit();
     posterBitmap.UriSource = new Uri(PictureHandler.getPersonPortraitPath(personDetails.dbID, PosterSize.FULL));
     posterBitmap.EndInit();
     bigPicture.bigPicture.Source = posterBitmap;
     Point origin = new Point(0, 0);
     Point screenOrigin = actorPoster.PointToScreen(origin);
     bigPicture.setOrigin(actorPoster.Source.Height, actorPoster.Source.Width, screenOrigin.X, screenOrigin.Y);
     bigPicture.ShowDialog();
 }
コード例 #2
0
ファイル: DetailsView.xaml.cs プロジェクト: Isodome/MovieRack
 private void actorPoster_MouseUp(object sender, MouseButtonEventArgs e)
 {
     MRListBoxItem selectedItem = (MRListBoxItem)castListBox.SelectedItem;
     if (selectedItem != null)
     {
         bigPicture = new BigPicture();
         BitmapImage posterBitmap = new BitmapImage();
         posterBitmap.BeginInit();
         posterBitmap.UriSource = new Uri(PictureHandler.getPersonPortraitPath(selectedItem.getId, PosterSize.FULL));
         posterBitmap.EndInit();
         bigPicture.bigPicture.Source = posterBitmap;
         Point origin = new Point(0, 0);
         Point screenOrigin = actorPoster.PointToScreen(origin);
         bigPicture.setOrigin(actorPoster.Source.Height, actorPoster.Source.Width, screenOrigin.X, screenOrigin.Y);
         bigPicture.ShowDialog();
     }
 }
コード例 #3
0
ファイル: DetailsView.xaml.cs プロジェクト: Isodome/MovieRack
 private void posterTitle_MouseUp(object sender, MouseButtonEventArgs e)
 {
     bigPicture = new BigPicture();
     BitmapImage posterBitmap = new BitmapImage();
     posterBitmap.BeginInit();
     posterBitmap.UriSource = new Uri(PictureHandler.getMoviePosterPath(movieDetails.dbId, PosterSize.FULL));
     posterBitmap.EndInit();
     bigPicture.bigPicture.Source = posterBitmap;
     Point origin = new Point(0, 0);
     Point screenOrigin = posterTitle.PointToScreen(origin);
     bigPicture.setOrigin(posterTitle.Source.Height, posterTitle.Source.Width, screenOrigin.X, screenOrigin.Y);
     bigPicture.ShowDialog();
 }