如何在WPF应用程序中对Windowsformhost(Web浏览器控件)进行动画处理
问题描述:
如何在WPF应用程序中对Windowsformhost(Web浏览器控件)进行动画处理
How to animate windowsformhost(web browser control) in WPF application
答
有效地,您不能对Web浏览器控件进行动画处理,因为它不是本机WPF控件-相反,它是围绕Win32浏览器控件的非常薄的包装器.这意味着,除了做一些非常基本的事情(如更改控件的大小)外,还没有真正需要动画的设施,例如两次停止动画.甚至不能顺利完成-这在很大程度上是一次全部完成"的方法.您还可以查看其他浏览器控件,包括Chromium,Awesomium或免费的 Berkelium [
Effectively, you cannot animate the web browser control because it is not a native WPF control - it is, instead, a very thin wrapper around the Win32 browser control. This means that the facilities you have to animate, such as double stop animation, are not really present beyond doing something very basic such as changing the size of the control; and even that can''t be done smoothly - it''s very much an "it all happens at once" approach. There are other browser controls that you could look at, including Chromium, Awesomium, or the free Berkelium[^].