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.