void DestroyPoster()
 {
     if (posterElement != null)
     {
         posterContainer.Children.Remove(posterElement);
         posterElement = null;
         MediaPlayer.StretchChanged -= MediaPlayer_StretchChanged;
         MediaPlayer.PosterSourceChanged -= MediaPlayer_PosterSourceChanged;
     }
 }
Beispiel #2
0
 void DestroyPoster()
 {
     if (posterElement != null)
     {
         posterContainer.Children.Remove(posterElement);
         posterElement = null;
         MediaPlayer.StretchChanged      -= MediaPlayer_StretchChanged;
         MediaPlayer.PosterSourceChanged -= MediaPlayer_PosterSourceChanged;
     }
 }
 void InitPoster()
 {
     if (MediaPlayer.PosterSource != null)
     {
         posterElement = new PosterView()
         {
             Source = MediaPlayer.PosterSource,
             Style = PosterViewStyle
         };
         posterContainer.Children.Add(posterElement);
         posterElement.Stretch = MediaPlayer.Stretch;
         MediaPlayer.StretchChanged += MediaPlayer_StretchChanged;
     }
 }
Beispiel #4
0
 void InitPoster()
 {
     if (MediaPlayer.PosterSource != null)
     {
         posterElement = new PosterView()
         {
             Source = MediaPlayer.PosterSource,
             Style  = PosterViewStyle
         };
         posterContainer.Children.Add(posterElement);
         posterElement.Stretch       = MediaPlayer.Stretch;
         MediaPlayer.StretchChanged += MediaPlayer_StretchChanged;
     }
 }