Creating a Silverlight web part

In this recipe we will create a Silverlight application that retrieves data from the contacts list that we used in Chapter 1.

Getting ready

The previous recipes should be completed successfully so that you understand the concept of a web part and its deployment. Apart from that, create a new document library on your site using SharePoint UI and name it XAPFiles.

How to do it...

  1. If you have closed Visual Studio IDE, launch it as an administrator.
  2. Create a new empty SharePoint project called SilverlightOM. Take defaults on the next steps of the wizard.
  3. To this solution add a new Silverlight application project and name it ContactsListSilverlight.
  4. Now to your empty SharePoint project, add a new module and name it XAPFiles ...

Get Microsoft SharePoint 2010 Development with Visual Studio 2010: Expert Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.