Saturday, November 05, 2011

How to Use the Silverlight SharePoint Web Part to Display Silverlight Applications

Silverlight applications are used to build rich Internet-based applications. SharePoint previously allowed Silverlight integration with some configurations and many deployment dependencies.
SharePoint 2010 has introduced a new web part (Silverlight Web Part) which is an out of the box SharePoint web part. It facilitates one to view their Silverlight applications. The Silverlight web part always accepts the application in the ".xap" format, which is basically the compressed output file for the Silverlight application.
So, how to use out of box Silverlight web part in SharePoint 2010?
  1. Create a sample Silverlight application using Visual Studio 2010.
  2. Find a .xap file in the projectfolder -> projectfolder.web -> ClientBin folder
  3. Upload the .xap file into one of the SharePoint libraries.  To upload the .xap file, go to the Library and click Add document.  Browse the source path of the clientbin folder and select the .xap file and click OK. One can select to overwrite the existing file in the library too.
  4. To add a Silverlight web part, go to SiteActions -> Edit Page. Click Add web part. In the Media and Content category, select Silverlight web part and click OK.
  5. Open the tool pane. Under the application category, click on configure and select the application file source path as the document name (.xap files) that you uploaded in the library. Click OK and select Stop editing from the Page tab
  6. The Silverlight application is viewable and accessible very easily without any kind of back-end configurations.

No comments:

Post a Comment