How to Embed Silverlight Content in Almost Any Web Page

How to Embed Silverlight Content in Almost Any Web Page

Rate This
  • Comments 25

Catherine Heller has written up a great post that describes a new feature in Silverlight Streaming. Having uploaded a Silverlight application to the Silverlight Streaming service, you can now embed it in any web page as an <iframe>.

If you want to include a cool Silverlight gadget on your blog, but your blog engine doesn't support custom scripts or XAML files, this will work well. It's also perfect for a social networking site like Facebook, since you can create an application that hosts an <iframe>.

Here's a little example that demonstrates this:

All it took to embed this was one element:

<iframe src="http://silverlight.services.live.com/invoke/32/SlLogo/iframe.html" 
frameborder="0" width="258" height="100" scrolling="no" />

Of course, you're welcome to steal this one-liner to add some Silverlight "bling" to your own site :-)

In the next post, I'll walk through a step-by-step guide to uploading an Expression Blend project to Silverlight Streaming.

Page 2 of 2 (25 items) 12