Anyone have an idea why the WPF syntax for changing whether a piece of media plays by default is different between WPF and Silverlight XAML? In WPF the syntax is:
<MediaElement Source="..." LoadedBehavior="Play" /> <!-- the default -->
And in Silverlight it is:
<MediaElement Source="..." AutoPlay="true" /> <!-- the default -->
Obviously this is causing some tool problems, but any idea why they wouldn't be the same? Seems like a bug and not a feature...really ;)
Shawn Wildermuth
MVP, Speaker and Author
Web Workshop (HTML5/CSS/MVC4)
San Fran, CA - Mar 28-30, 2012
Dallas, TX: Apr 29-May 1, 2012
https://agilitrain.com/Workshop/Info/Web_Workshop
swildermuth
Star
8438 Points
1547 Posts
MediaElement's AutoPlay versus LoadedBehavior
Sep 21, 2007 11:10 PM | LINK
Anyone have an idea why the WPF syntax for changing whether a piece of media plays by default is different between WPF and Silverlight XAML? In WPF the syntax is:
<MediaElement Source="..." LoadedBehavior="Play" /> <!-- the default -->
And in Silverlight it is:
<MediaElement Source="..." AutoPlay="true" /> <!-- the default -->
Obviously this is causing some tool problems, but any idea why they wouldn't be the same? Seems like a bug and not a feature...really ;)
MVP, Speaker and Author
Web Workshop (HTML5/CSS/MVC4)
San Fran, CA - Mar 28-30, 2012
Dallas, TX: Apr 29-May 1, 2012
https://agilitrain.com/Workshop/Info/Web_Workshop