Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

MediaElement's AutoPlay versus LoadedBehavior RSS

0 replies

Last post Sep 21, 2007 11:10 PM by swildermuth

(0)
  • swildermuth

    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 ;)

     

    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