Simply Silverlight is very easy to use. If you have a Silverlight .xap file you want to include in a post or page, follow this simple recipe.
/ClientBin directory off the root of your website. This is the plugin’s default storage location for Silverlight .xap files. [simply-silverlight xap=filename.xap]. The shortcode provides several attributes to refine the output. All of them are optional except the xap attribute. Here they are:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
xap – The name of the Silverlight .xap file. This attribute is required. path – The location of the .xap file relative to the root of the site. Can be an absolute URL. width – The Width attribute of the OBJECT tag. [Valid values: 0-9999] height – The Height attribute of the OBJECT tag. [Valid values: 0-9999] display – The CSS Display property of the DIV tag's Style attribute. [Valid values: inline, block or list-item] float – The CSS Float property of the DIV tag's Style attribute. [Valid values: left or right] style – The Style attribute of the DIV tag. Takes precedence over the Display and Float properties. [Valid values: any valid Style markup] background - The Background color of the OBJECT tag. [Valid values: any valid HTML color value, default is white] version - The minimum runtime version of Silverlight required by the control. [Valid values: 3.0.50106.0, 4.0.60531.0 or any valid version number] autoupgrade - The existing Silverlight runtime will attempt to upgrade itself if necessary. [Valid values: true or false] onerror - Define an error handler to call when the Silverlight plug-in encounters an error. initparams – These are user-defined initialization parameters for the control. |