MediaElement control provides an easy way to play videos in WPF applications. Essentially,
MediaElement wraps Windows Media Player. So any video that Windows Media Player can play,
MediaElement can also play.
In this recipe we will use
MediaElement to create a simple video player with four basic functionalities: load, play, pause, and stop.
MainWindow.xaml. Switch to design mode.