如何在WPF应用程序中对Windowsformhost(Web浏览器控件)进行动画处理 [英] How to animate windowsformhost(web browser control) in WPF application

查看:88
本文介绍了如何在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[^].


这篇关于如何在WPF应用程序中对Windowsformhost(Web浏览器控件)进行动画处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆