To demonstrate this feature I created a simple but interesting sample:
HtmlPage.Window.Invoke("moveBox", newX, newY);
That is all I have to do!
public partial class Page : UserControl
public void MoveBox(int x, int y)
silverLightControl = document.getElementById("silverlightControl");
Where "silverlightControl" is the id applied to my Silverlight application object tag.
Once I have a reference to the Silverlight control I am able to invoke the method which I marked as a ScriptableMember using the object name I registered:
The code for this sample can be found at here at MSDN Code Gallery.