Access Silverlight window within Chrome via System.Windows.Automation Access Silverlight window within Chrome via System.Windows.Automation google-chrome google-chrome

Access Silverlight window within Chrome via System.Windows.Automation


I'm not sure if this helps or not in your instance but I've run into a couple instances where I needed to enable communication into Silverlight from outside (Office Application AddIns that need to communicate with the Silverlight Application). I've used javascript in the html page hosting the Silverlight Application as a bridge for that communication:

    function sendToNav(message) {        var nav = document.getElementById("Nav");        nav.content.NavigationPage.HandleScriptedMessage(message);    }    function passMessageToHost(message) {        if (window.external == null) return;        window.external.HandleScriptedMessage(message);    }

If there any additional information I can provide please let me know. Hope this is of some use to you.