Dynamic XAP LoadingVersion: 1.0.0 DescriptionWhile the overhead of downloading the Silverlight client object model for one Silverlight application may not be very large (approximately 135 KB), when a page or a site makes use of multiple Silverlight applications, and each one includes the client assemblies within the XAP file, it adds up. A better approach is to not include the client object model assemblies inside each application's XAP, but instead to load them dynamically and cache them on the client. Microsoft has packaged up the two Silverlight client object model assemblies into a single XAP file named Microsoft.SharePoint.Client.xap and included it as part of the SharePoint installation. This lab will show how you can programmatically download the assemblies from their location on the server (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ClientBin) and have them be cached on the client, thereby improving load time for all Silverlight applications that utilize this approach. OverviewWhile the overhead of downloading the Silverlight client object model for one Silverlight application may not be very large (approximately 135 KB), when a page or a site makes use of multiple Silverlight applications, and each one includes the client assemblies within the XAP file, it adds up. A better approach is to not include the client object model assemblies inside each application’s XAP, but instead to load them dynamically and cache them on the client. Microsoft has packaged up the two Silverlight client object model assemblies into a single XAP file named Microsoft.SharePoint.Client.xap and included it as part of the SharePoint installation. This lab will show how you can programmatically download the assemblies from their location on the server (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ClientBin) and have them be cached on the client, thereby improving load time for all Silverlight applications that utilize this approach. ObjectivesThis lab will demonstrate how to dynamically download and load the Silverlight client object model assemblies. The example shown here can be adapted to work in any situation. System RequirementsYou must have the following items to complete this lab:
SetupThe setup and configuration for this demo involves the following tasks:
Task 1 – Starting The Microsoft 2010 Information Worker Demonstration And Evaluation Virtual Machine (RTM)
Task 2 – Making Sure That Silverlight Version 4 Is Installed On The Machine
Task 3 – Installing The Silverlight Web Parts Extensions Into Visual Studio 2010
Task 4 – Making Sure That The Silverlight 4 Tools For Visual Studio Are Installed On The Machine
Task 5 – Configuring The Environment For This Demo
ExercisesThis Hands-On Lab encompasses the following exercises:
Estimated time to complete this lab: 10 minutes. Starting MaterialsThis Hands-On Lab includes the following starting materials.
|
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.