Exercise 1: Using the Silverlight Web Part
In this exercise, you will use the Silverlight Web Part to display a Silverlight application on a SharePoint site.
Task 1 – Uploading a Silverlight Application to a SharePoint Site
In this task, you will use Internet Explorer to upload a Silverlight application to a SharePoint site.
- Open Internet Explorer and navigate to https://intranet.contoso.com.
- Click the Shared Document link to open the Shared Documents document library.
- Click the Add document link.
- Click Browse…
- Browse to the <INSTALL>\Labs\SilverlightWebPart\Source\End \Sample.Silverlight.App\Bin\Release folder and select the Sample.Silverlight.App.xap file.
- Click Open.
- Click OK.
- Click Save.
Right click on the Sample.Silverlight.App document and select Copy Shortcut. The path to the Silverlight application will be used in the next task.
Figure 1
Copy Sample.Silverlight.App url
Task 2 – Adding the Silverlight Web Part to a Page in a SharePoint Site
In this task, you will use Internet Explorer to add a Silverlight Web Part to a page in a SharePoint site.
- Open Internet Explorer and navigate to https://intranet.contoso.com.
Click the Edit button.
In the Editing Tools group in the ribbon, select the Insert tab.
- Select Web Part.
- In the Categories section select Media and Content.
- In the Web Parts section select the Silverlight Web Part.
- Click the Add button.
When the Silverlight Web Part dialog appears, right click in the URL textbox and select Paste.
Figure 4
Paste Sample.Silverlight.App URL
- Click OK.
Click the Save Button.
Notice the Silverlight Web Part displays the Silverlight.Sample.App Silverlight application on the SharePoint page.
Figure 6
Silverlight Sample Application into a Web Part
Exercise 1 Verification
In order to verify that you have correctly performed all steps of exercise 1, proceed as follows:
Verification 1
In this verification, you will browse to the SharePoint page where you added the Silverlight Web Part to validate it displays the Silverlight.Sample.App Silverlight application.
- Open Internet Explorer and navigate to https://intranet.contoso.com.
Verify the Silverlight Web Part displays the Silverlight.Sample.App Silverlight application on the SharePoint page.
Figure 7
Silverlight Sample Application into a Web Part