private void SetScanCompleteVideo(string colour) { try { // Open document string filename = txtVideoFolderPath.Text + @"\Pergola Scan " + colour + ".mp4"; ScanCompleteVideo.Stop(); ScanCompleteVideo.Source = new Uri(filename); ScanCompleteVideo.Position = TimeSpan.Zero; Vid.Visibility = Visibility.Hidden; ScanCompleteVideo.Play(); ScanCompleteVideo.Visibility = Visibility.Visible; } catch { } }
private void ScanCompleteVideo_MediaEnded(object sender, RoutedEventArgs e) { ScanCompleteVideo.Stop(); ScanCompleteVideo.Visibility = Visibility.Hidden; Vid.Visibility = Visibility.Visible; }