In silverlight code, you check for something, including the a function, using the method GetProperty: -
var fn = HtmlPage.Window.GetProperty("myJavascriptFunction");
if (fn != null)
fn.InvokeSelf("Hello");
At the same time, if the name exists, but it is not a function, the above code throws an exception.
source
share