예제 #1
0
        public void PreviewContentLoaded(object sender, RoutedEventArgs arguments)
        {
            CurrentPreview.Position = new TimeSpan(0, 0, 5);
            CurrentPreview.Play();
            CurrentPreview.Pause();

            sliderTime.Maximum        = CurrentPreview.NaturalDuration.TimeSpan.TotalMilliseconds;
            sliderTime.Value          = 0;
            sliderTime.IsEnabled      = CurrentPreview.IsLoaded;
            MediaContainer.Visibility = Visibility.Visible;
        }
예제 #2
0
 public void SetCurrentMedia(object sender, SelectionChangedEventArgs arguments)
 {
     if (CurrentPreview.HasVideo)
     {
         CurrentPreview.Close();
     }
     if (arguments.AddedItems.Count > 0)
     {
         _current.CurrentSelection = arguments.AddedItems[0] as MappingViewModel;
         CurrentPreview.Pause();
     }
 }
예제 #3
0
 private void PauseCurrentVideo(object sender, RoutedEventArgs e)
 {
     CurrentPreview.Pause();
 }