0
我开发存储在HTML文件的GUI层作为嵌入式资源的桌面应用程序。我有一个管理用户界面生命周期WPF Web浏览器。我能够毫无问题地完成所有工作。不过,我最近发现,使FEATURE_BROWSER_EMULATION时,IE 11(11000),该文件的身体变得无法访问。然后,当使用IE 10(10000)时,一切都很好。下面WPF的Webbrowser - 访问文档正文上IE11
的例子显示了如何获得文档正文的offsetHeight:
dynamic document = (this.wbContent.Document as dynamic);
if ((document == null) || (document.body == null)) return 0;
return document.body.OffsetHeight;
的HTML是:
<html>
...
<body style="width: 170px; height: 240px">
...
</body>
</html>
当使用IE 11它抛出型的“异常Microsoft.CSharp.RuntimeBinder .RuntimeBinderException”。
当使用IE 10将返回240
你有关于如何在IE 11进入身体的任何想法?