Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

MediaElement's AutoPlay versus LoadedBehavior RSS

0 replies

Last post Sep 22, 2007 12:10 AM by swildermuth

(0)
  • swildermuth

    swildermuth

    Star

    8438 Points

    1547 Posts

    MediaElement's AutoPlay versus LoadedBehavior

    Sep 22, 2007 12:10 AM | 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 ;)

     

    (If this has answered your question, "Mark as Answer")

    Shawn Wildermuth
    C# MVP, MCSD, Speaker and Author

    Silverlight 3 Workshop
    Miami, FL: Oct 12-14th
    Portlant, OR: Dec 2-4th
    Atlanta, GA: Dec 7-9th
    http://silverlight-tour.com