News:

Choose a design and let our professionals help you build a successful website   - ITAcumens

Main Menu

Invoking an Application Using a Control

Started by thiruvasagamani, Jan 26, 2009, 03:05 PM

Previous topic - Next topic

thiruvasagamani

Invoking an Application Using a Control

You can invoke a Silverlight application that's hosted on Silverlight Streaming using the Windows Live Silverlight Streaming control.

To make the control available to your web page, follow these steps:

   1. Modify the <html> tag to reference the devlive namespace:
      Copy Code

      <html xmlns:devlive="http://dev.live.com">

   2. Add the following references to the page header:
      Copy Code

      <script type="text/javascript"
      src="http://controls.services.live.com/scripts/base/v0.3/live.js">
      </script>
      <script type="text/javascript"
      src="http://controls.services.live.com/scripts/base/v0.3/controls.js">
      </script>

   3. Add the Silverlight Streaming control to your web page, as shown in the following example. Replace accountID with your account identifier, and appName with the application name:
      Copy Code

      <devlive:slscontrol
          silverlightVersion="1.0"
          src="/accountID/appName/"
          installationMode="popup"
          initParams="myKey=theValue">
      </devlive:slscontrol>


Source : MSDN
Thiruvasakamani Karnan