private void DragStarted(object sender, System.Windows.Controls.Primitives.DragStartedEventArgs e)
 {
     VideoWindow.Pause();
     if (timer != null)
     {
         timer.Stop();
     }
 }
 private void PauseButton(object sender, RoutedEventArgs e)
 {
     VideoWindow.Pause();
     if (timer != null)
     {
         timer.Stop();
     }
 }
 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();
 }