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; }
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(); } }
private void PauseCurrentVideo(object sender, RoutedEventArgs e) { CurrentPreview.Pause(); }