Search Wiki:

Combining Silverlight v2 and JavaScript

Silverlight v2 introduced managed code into Silverlight but it didn't forget that JavaScript is still important. Silverlight 2 has a feature which allows the Silverlight application and its host page's JavaScript can communicate with each other.

To show this ability I created this web page:

This sample has two two squares: one is made in silverlight and the other is html. When you drag one it will update the other one. This is showing that the position information is being sent between JavaScript and the Silverlight application.

View the Sample Web Page

View the Blog Post

Download the Code!

Last edited Sep 16 2010 at 9:01 PM  by mmanelaMSFT, version 8
Page view tracker