WPF, how to determine when MediaElement finished playing a movie?

I show the movie in my application, and I want the application to play it only once. And when he finished playing, I want to turn on some buttons (play, rewind, watch again, etc.), but is there any way to get the event when the movie ends, or anything that could execute this script?

Greetings

+6
wpf mediaelement
source share
1 answer

The MediaElement.MediaEnded event should help you

+14
source share

All Articles