Extending the Rich UI widget set with Silverlight

You can write widgets that are based on Microsoft Silverlight, which is a browser plugin that is described at http://silverlight.org. Silverlight uses an XML dialect called XAML to define user interfaces and uses the .Net platform to handle events. You can access the Silverlight runtime code from the browser by running JavaScript™ code.
A sample named Silverlight is included in the product, which includes the following files:

Demo.egl, the code that is written for interacting with the new widget, is almost identical to the code that is written to interact with the Rich UI button in the buttontest sample (file OneButton.egl); the APIs are the same, for ease of use by the EGL developer.

You can place the files Button.egl, Button.js, canvas.xaml and Silverlight.html in a standalone project and store that project in a repository so that others in your organization can use the Silverlight functionality without their needing to maintain duplicate JavaScript implementations. Also, you can expose additional Silverlight examples, such as an image carousel or a videoplayer.


Feedback