Ejemplo n.º 1
0
 private void DragStarted(object sender, System.Windows.Controls.Primitives.DragStartedEventArgs e)
 {
     VideoWindow.Pause();
     if (timer != null)
     {
         timer.Stop();
     }
 }
Ejemplo n.º 2
0
 private void PauseButton(object sender, RoutedEventArgs e)
 {
     VideoWindow.Pause();
     if (timer != null)
     {
         timer.Stop();
     }
 }
Ejemplo n.º 3
0
 private void MediaOpened(object sender, RoutedEventArgs e)
 {
     TimerSlider.Maximum = VideoWindow.NaturalDuration.TimeSpan.TotalSeconds;
     timer                   = new DispatcherTimer();
     timer.Interval          = TimeSpan.FromSeconds(1);
     timer.Tick             += Timer_Tick;
     FullTimeOfVideo.Content = VideoWindow.NaturalDuration.TimeSpan.ToString(@"hh\:mm\:ss");
     VideoWindow.Play();
     VideoWindow.Pause();
 }