/ Published in: C#
URL: http://www.john-lynch.org/
There's no built-in "loop" property on the Silverlight mediaElement control. Add a listener to any mediaElement and this function will loop it.
Expand |
Embed | Plain Text
//to add Event Handler where "ambient1" and "ambient2" are different media elements... //Event Handler void media_MediaEnded(object sender, RoutedEventArgs e) { MediaElement ctrl = (MediaElement)sender; ctrl.Stop(); ctrl.Play(); }
You need to login to post a comment.
