【发布时间】:2012-04-02 20:18:20
【问题描述】:
我正在尝试将一些使用 jQuery UI 进行动画处理的 html 加载到 WPF 应用程序中托管的 WebBrowser 控件中。 html 在 IE9 中呈现非常流畅,但使用 WebBrowser 控件时有点不稳定(请参阅下面的 html)
我在 HKEY_LOCAL_MACHINE/SOFTWARE/... 和 HKEY_LOCAL_MACHINE/Wow6432Node/SOFTWARE/... 下启用了以下 IE 功能。
FEATURE_BROWSER_EMULATION (using the value 9999)
FEATURE_GPU_RENDERING
http://msdn.microsoft.com/en-us/library/ee330730(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/ee330731(v=vs.85).aspx
即使启用了这些功能,我仍然让内容呈现缓慢。我还尝试在 WPF 4.5 中查看“新”空域是否有帮助,但没有
有没有人知道是什么原因造成的,或者我可以做些什么来解决这个问题?
感谢您的帮助!
帕斯卡
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>test</title>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.18/jquery-ui.min.js" type="text/javascript"></script>
<style type="text/css">
body{margin: 0;padding: 0;}
div
{
width:960px;
height:360px;
background:blue;
color: white;
}
</style>
</head>
<body>
<div id="slide">
bla bla bla bla bla bla bla bla bla
</div>
<script type="text/javascript">
$(function () {
alert(navigator.appVersion); // it is running in IE9 mode
var options = { to: { right: "0"} };
$("#slide").show("slide", { direction: "right" }, 2000);
});
</script>
</body>
</html>
【问题讨论】:
-
问题也已在 WPF 论坛social.msdn.microsoft.com/Forums/en/wpf/thread/… 上提出过
标签: c# wpf internet-explorer-9 webbrowser-control