Silverlight XAML Primer 7, Listing 1

Embedding a .WMV file into a Silverlight canvas.

<Canvas
   xmlns="http://schemas.microsoft.com/client/2007" Width="500" 
   Height="500">

  <MediaElement Name="media" Source="movie.wmv" AutoPlay="true" 
    Stretch="Fill" />

</Canvas>
comments powered by Disqus
Upcoming Events

.NET Insight

Sign up for our newsletter.

I agree to this site's Privacy Policy.