[RESOLVED] Call Parent control C# Method from Javascript ?
It's been quite a while since my last post here. Guess I've been pretty busy :p
Ok I'm going to try to make this clear. I have a C# WPF application. One of my cotrols hosts a WebBrowser control which displays an HTML page that displays a Silverlight control. I want my WPF control, the initial one to know when the silverlight control is finished loading. I know I already can attach a Javascript method to my silverlight control, this way when the silverlight control is done loading, the javascript function is called. Now is there a way I could call a C# method that is in my Initial C# control, the one hosting the WebBrowser Control, from that javascript method ?
I know I can call C# methods that are in my Silverlight control, I've already done that for other purposes, but what I need now is to call a method from the Parent control hosting whe webbrowser control which I am not sure can be done.
Thanks for any help you can give.
Re: Call Parent control C# Method from Javascript ?
I found a workaround. Instead of letting the application know when the silverlight control is loaded to pass it a certain value I decided to pass the value to my Html page in the querystring and retrive that querystring parameter whenever I want in the silverlight control.