问题
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,
回答1:
The MediaElement.MediaEnded event should help you
来源:https://stackoverflow.com/questions/1738967/wpf-how-to-determine-when-a-mediaelement-has-finished-playing-the-movie