Share via


Using The Custom Silverlight WebPart

Version: 1.0.0

Description

The Visual Studio 2010 SharePoint Silverlight Web Parts Extension provides a SharePoint Project Item (SPI) called the Silverlight Custom Web Part that allows developers to create and deploy a new Silverlight application to a SharePoint sites. This lab will guide the reader through an exercise that uses the Silverlight Custom Web Part to create a Silverlight application, deploy it to a SharePoint site, and display it on a web page with the Silverlight Web Part.

Overview

Visual Studio 2010 provides the ability to create SharePoint Solution Packages and automate the deployment of Silverlight applications to SharePoint site collections. By using a SharePoint Solution Package you can deploy a Silverlight application and a web page containing a Silverlight Web Part pre-configured to display the Silverlight application. Taking this approach allows you to easily roll out new Silverlight applications to SharePoint sites without the need to create a page, add a Silverlight Web Part to the page, and configure the Silverlight Web Part to display the Silverlight application. This cuts down on the amount of documentation and time needed to deploy Silverlight applications to SharePoint sites. This lab will guide the reader through an exercise which uses the Visual Studio 2010 to create a SharePoint Solution Package that deploys a Silverlight application and a web page that includes a pre-configured Silverlight Web Part to display the Silverlight application.

The Visual Studio 2010 SharePoint Silverlight Web Parts Extension provides a SharePoint Project Item (SPI) called the Silverlight Custom Web Part that allows developers to create and deploy a new Silverlight application to a SharePoint sites. This lab will guide the reader through an exercise that uses the Silverlight Custom Web Part to create a Silverlight application, deploy it to a SharePoint site, and display it on a web page with the Silverlight Web Part.

Objectives

This lab will demonstrate how you can use the Silverlight Custom Web Part to create a Silverlight application and deploy it to a SharePoint site and display it on a web page with the Silverlight Web Part. To demonstrate this concept the reader will

  • Use the Silverlight Custom Web Part to create a Silverlight application.
  • Use the Silverlight Custom Web Part to create a SharePoint Solution Package that deploys the Silverlight application.
  • Use Silverlight Custom Web Part to create a web page that includes a pre-configured Silverlight Web Part to display the Silverlight application.
  • Use Silverlight Custom Web Part to create a SharePoint Solution Package that deploys the web page with the pre-configured Silverlight Web Part.

System Requirements

You must have the following items to complete this lab:

  • 2010 Information Worker Demonstration and Evaluation Virtual Machine
  • Microsoft Visual Studio 2010

Setup

You must perform the following steps to prepare your computer for this lab...

  1. Download the 2010 Information Worker Demonstration and Evaluation Virtual Machine and create the Hyper-V image.

Exercises

This Hands-On Lab comprises the following exercises:

  1. Using the Custom Silverlight Web Part

Estimated time to complete this lab: 10 minutes.

Starting Materials

This Hands-On Lab includes the following starting materials.

  • Visual Studio solutions. The lab provides the following Visual Studio solutions that you can use as starting point for the exercises.
    • <INSTALL>\Labs\UsingtheCustomSilverlightWebPart\Source\begin\Sample.Silverlight.App.sln: A sample Silverlight application used to demonstrate how the Silverlight Web Part displays Silverlight applications on a SharePoint site.