Use MediaElement.MediaEnded RRS feed

  • Question

  • Excuse me plis Can somebody help me?, I don't now can use a MediaElement.MediaEnded in microsoft helper says that it works with RoutedEventHandler how do i used it plis thank's

    Friday, June 24, 2011 4:31 AM

All replies

  • Hi,

    The MediaElement.MediaEnded event will be fired when the media played by MediaElement is ended.

    You could add an event handler in the code behind file:

    public MainPage()
    myMediaElement.MediaEnded += new RoutedEventHandler( myMediaElement_MediaEnded );

    private void myMediaElement_MediaEnded( object sender , RoutedEventArgs e )
        //Do something.


    May this information is helpful to you.

    Ouch Liu
    Welcome to visit by blog: Ouch@點部落
    Welcome to join the Designer x Developer group on Facebook: Facebook 設計x程式 社團
    Friday, June 24, 2011 4:59 AM