handleLoad: function(control, userContext, rootElement)
this.control = control;
// Get a reference to your media element (mine is called "MainMovie")
this.movie = control.content.findName("MainMovie");
// Add an Event Listener for the "MediaEnded" Event
//When the end of the movie is reached, return the movie to the start and play it again
movieMediaEnded: function(sender, eventArgs)
sender.Position = "00:00:00";
See my solution in action at The Daily Prophet Online.
MSDN's Pure XAML Solution
<!-- The MediaElement control plays the sound. -->
<MediaElement Name="myMediaElement" >
<!-- The MediaTimeline has a RepeatBehavior="Forever" which makes the media play
over and over indefinitely.-->
<MediaTimeline Source="media\tada.wav" Storyboard.TargetName="myMediaElement"