Class MainWindow
Public Sub PlayVideo(sender As Object, e As RoutedEventArgs)
MyVideo.Play()
End Sub
Public Sub PauseVideo(sender As Object, e As RoutedEventArgs)
MyVideo.Pause()
End Sub
Public Sub StopVideo(sender As Object, e As RoutedEventArgs)
MyVideo.Stop()
End Sub
Private Sub Window_Loaded(sender As System.Object, e As System.Windows.RoutedEventArgs)
MyVideo.Stop();
End Sub
End Class