Adding Silverlight application to your site

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

To add your Silverlight application to your site, you will need to use the Silverlight application web part, which is a container for Silverlight applications. You can find a live example of use of this web part on the sample E-commerce site, in the Silverlight section.

 

The following steps need to be taken to add your Silverlight application to a web site.

 

1. Go to CMS Desk and choose the page where you want to add your Silverlight application from the content tree.

 

2. Switch to the Design tab and click the Add web part (AddWebPart) icon at the top-right corner of the web part zone where you want to place the application.

 

3. Choose the Silverlight -> Silverlight application web part and click OK.

 

4. In the web part properties window which pops-up, you can set the following web-part-specific properties:

 

Application path - path to your Silverlight application; e.g. ~/ClientBin/MyApplication.xap
Minimum version - minimal required version of Silverlight required by the silverlight application run by this web part
Container width - width of the application container; can be entered either as an integer value (e.g. 315) or as a percentage value (e.g. 59%)        
Container height - height of the application container; can be entered either as an integer value (e.g. 315) or as a percentage value (e.g. 59%)        
Container background - background of the application container; can be entered in hexadecimal (e.g. #323232) format or selected from a Color picker, which is displayed after clicking the Select button; if no value is entered, white color is used
Endpoint address - web service endpoint address the client application can connect to; if specified, its value is added as parameter with 'endpoint' key to the application parameters collection; you need to handle this parameter in your Silverlight application for it to take effect        
Parameters - Silverlight application parameters in the following format: <key1>=<value1>,<key2>=<value2>,...        
Alternate content - custom HTML content which is displayed to users when Silverlight plug-in is not installed; leave blank if you want the default alternate content to be displayed

 

Click OK, switch to the Live site and enjoy your Silverlight application running on your Kentico CMS web site.

 

Page url: http://devnet.kentico.com/docs/devguide/index.html?adding_silverlight_application_to_your_site.htm