Exemplo n.º 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;
        }
Exemplo n.º 2
0
 private void PlayCurrentVideo(object sender, RoutedEventArgs e)
 {
     CurrentPreview.Play();
 }