Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am showing a movie on my application, and i want the application to only play it once. And when its done playing i want to enable some buttons (play, rewind, watch again etc...) but is there any way i can get an event when the movie has finished - or anything that would accomplish this scenario?

Cheers,

like image 460
H4mm3rHead Avatar asked Nov 15 '09 21:11

H4mm3rHead


1 Answers

The MediaElement.MediaEnded event should help you

like image 138
Simon Fox Avatar answered Oct 14 '22 17:10

Simon Fox