A quick Google search:
WPF MediaElement is playing? - Google Search [
^]
found this:
How to: Control a MediaElement (Play, Pause, Stop, Volume, and Speed) - WPF .NET Framework | Microsoft Learn[
^]
If you read the sample code you will see this:
<MediaElement Source="media\numbers.wmv" Name="myMediaElement"
Width="450" Height="250" LoadedBehavior="Manual" UnloadedBehavior="Stop" Stretch="Fill"
MediaOpened="Element_MediaOpened" MediaEnded="Element_MediaEnded"/>
MediaElement.MediaEnded Event[
^] will be triggered when the media stops playing.
UPDATE
Your question is when paused and when stopped. Above I show you how to identify when it ends playing.
If you are telling the
MediaElement
to pause or stop manually, then you already know the state of the control, you just need to track the manual state.