How to host Silverlight in SharePoint
Hosting Silverlight in SharePoint is actually pretty simple in its basic form. If you want more control over your Silverlight app within SharePoint there's always the excellent Silverlight Blueprints. The only prerequisite i'm aware of is that the IIS server SharePoint is running on has a mime type that support Silverlight (extension: .XAP, MIME-type: application/x-silverlight).
The simple way I've been doing it, is as follows:
Upload the Silverlight XAP to your SharePoint site's 'Shared Documents' document library.
Create a new Web Part page in SharePoint (ensure the Document Library is set to 'Shared Documents')
Then Edit the page and add a Content Editor WebPart
Open the Source Editor and paste the HTML source from your Silverlight test page
Adjust the Width and Height so you can see the page and your Silverlight app
And you're done! - Your Silverlight app is hosted in SharePoint. My next blog post will show how you can use SharePoint's web services to perform actions on WSS from within your Silverlight App. Quite an appealing prospect given that the world and his dog are now using SharePoint but still with the standard vanilla UI. Imagine the possibilities of sexing up WSS' collaboration features with Silverlight.
Anonymous
January 17, 2009
PingBack from http://blog.a-foton.ru/index.php/2009/01/17/how-to-host-silverlight-in-sharepoint/Anonymous
January 18, 2009
Well, I already tried out a lot of possibilities to make Silverlight integrate with SharePoint, but I always use code. But I never tought of this so evident possibility. Great!! Karine