Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 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();
     }
 }
Ejemplo n.º 3
0
 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();
 }