Bring some Silverlight on your website

Composite.Media.SilverLightPlayer allows you to embed and play Silverlight files on web pages.

Microsoft Silverlight is a development platform for creating and running Web, desktop and mobile applications.

How to Use Composite.Media.SilverLightPlayer

  1. Install the package.
  2. Place Silverlight files (.xap) in one of the public folders on your website (e.g. /Frontend or its own /Silverlight).
  3. Edit a page.
  4. Insert the Composite.Media.SilverLightPlayer function ( Insert | Function) or add the code:
     
    <f:function name="Composite.Media.SilverlightPlayer" xmlns:f="http://www.composite.net/ns/function/1.0"> 
      <f:param name="Source" value="/Silverlight/file.xap" /> 
      <f:param name="Width" value="700" /> 
      <f:param name="Height" value="300" /> 
      <f:param name="ClientId" value="Player1" /> 
    </f:function>
  5. Set its required parameters:
    • Source: The relative path to the Silverlight file on the website to embed (e.g. "/Silverlight/file.xap")
    • Width: The width of the player (e.g. "700")
    • Height: The height of the player (e.g. "300")
  6. Set its optional parameter if necessary:
    • ClientId: The ID of the embedded object to refer to from code (will be added to the <object/> element in its id attribute)

Requirements

Composite C1 version 2.1 or later

SHARE