We have been successfully using XBAP in our application and using BrowserInteropHelper.HostScript to allow me to talk back to the javascript on the host page.
- I am running the XBAP in an iframe.
- It is full trust
- I'm testing on IE9, .NET Framework 4.0
- The BrowserInteropHelper.HostScript is not null
However I cannot call any custom script function using BrowserInteropHelper.HostScript.
I know other people have asked this question but without any definitive answer from Microsoft.
I tried changing the incompatibility mode of my iframe to IE8 but somehow IE 9 does not allow a compatbility mode different than parent's compatibility mode?
Looking forward to hearing from Microsoft folks on this issue.
Thanks,