Silverlight

This extension contains functions for embedding Microsoft Silverlight content. Silverlight is a cross-browser, cross-platform, and cross-device plug-in for delivering the next generation of media experiences and rich interactive applications for the Web similar to Adobe Flash.

  Related Links: Extension Overview, DekiScript Overview, Extension Demos.

Assembly: mindtouch.deki.services
SID: http://services.mindtouch.com/deki/draft/2008/02/silverlight

This service requires Deki Wiki 1.9.0b or later.

To enable this extension, follow these steps:

  1. Go to Service management in the Control Panel of your wiki.
  2. Under Add Service, click on Local, and select type Extension.
  3. Enter a description and the extension SID: http://services.mindtouch.com/deki/draft/2008/02/silverlight
  4. Add any additional configuration settings that are required by the extension (see below).
  5. Click on add service.

Functions


silverlight.embed(source : str, width : num, height : num, version : str, backgroundcolor : str, windowless : bool) : xml

Embed a Silverlight control from source text or source uri.

Parameters:

Name Type Description
source
str
Silverlight source code or source URI
width
num
Optional.  Control width (default: 100%)
height
num
Optional.  Control height (default: 250)
version
str
Optional.  Silverlight version (default: '1.0')
backgroundcolor
str
Optional.  Control background color (default: body background color)
windowless
bool
Optional.  Window-less mode (default: true)

Samples:


Output

To embed a Silverlight control using a URI (note, the URI must have the same domain as the wiki site):

{{ silverlight.embed('http://wiki.opengarden.org/@api/deki/files/1965/=sample.xaml') }} 
xaml-sample.png

 

Tag page

Files 1

FileSizeDateAttached by 
 sample.xaml
Silverlight XAML file
1218 bytes21:00, 6 Mar 2008SteveBActions
You must login to post a comment.
Powered by MindTouch Deki Enterprise Edition v.8.08 RC1