private void VideoOutput_MediaEnded(object sender, RoutedEventArgs e)
 {
     if (DataListView.Items.Count > DataListView.SelectedIndex + 1)
     {
         DataListView.SelectedIndex += 1;
         AddVideoInMediaElement(new Uri(videoDataTempleteList[this.DataListView.SelectedIndex].Directory));
         IsPaused = false;
         VideoOutput.Play();
         StateIcon.Kind = PackIconKind.Pause;
     }
     else
     {
         VideoOutput.Stop();
     }
 }
 private void VideoOutput_MouseDown(object sender, MouseButtonEventArgs e)
 {
     if (IsPaused)
     {
         IsPaused = false;
         VideoOutput.Play();
         StateIcon.Kind = PackIconKind.Pause;
     }
     else
     {
         IsPaused = true;
         VideoOutput.Pause();
         StateIcon.Kind = PackIconKind.Play;
     }
 }