Exercise 2: Deploy and Test the Modified Silverlight Application
In this exercise, you will deploy the solution to the intranet.contoso.com site and configure the out-of-the-box Silverlight Web Part to display in French on the English site.
Task 1 – Deploying and Test the Modified Silverlight Application Without Additional Initialization Parameters
The Silverlight application will use the client’s culture information when UICulture key is not found in InitParams.
- Right-click OOTB_SLWebPart_Localization project in Solution Explorer and click Set as StartUp Project.
- Press F5 to build and deploy the solution.
- After Visual Studio launches Internet Explorer and the site renders in the browser, navigate to https://intranet.contoso.com/SitePages/SilverlightCultureWebPartPage.aspx.
- Click the Display Culture button and verify the Silverlight application displays the text in English for the English language site.
- Close Internet Explorer.
Task 2 – Testing the Modified Silverlight Application with Additional Initialization Parameters
In this task we will supply the UICulture value using the OOTB Silverlight Web Part’s Additional Initialization Parameters.
- Right-click OOTB_SLWebPart_Localization project in Solution Explorer and click Set as StartUp Project.
- Press F5 to build and deploy the solution.
- After Visual Studio launches Internet Explorer and the site renders in the browser, navigate to https://intranet.contoso.com/SitePages/SilverlightCultureWebPartPage.aspx.
Click the Edit icon.
Click the Web Part Drop Down arrow and select Edit Web Part.
- Expand the Other Settings category.
- Add UICulture=fr to the Custom Initialization Parameters property.
- Click OK.
Verify the Silverlight application located on an English-language site is now displaying French resources.