Fdream's Blog
专注于WEB前端开发
Powered by Google

Frame里的网页不能透明?

15 晴天 2007-8
Fdream 发表于 Silverlight, 已被阅读 10669 次, 评论 0 条
关键词:WPF Silverlight
[ 阅读字体大小: ]

奇怪,Frame类有个Opacity属性,设置其值为0.2一点反应都没有,又貌似没有其他属性可以设置透明度,难道是bug?如果是这样,那么Frame肯定是不能实现有透明度变化的动画了……

用Google搜了一下,找到这样两个帖子:

引用内容:

The animation worked when applied on other elements in a test project I made, including a Frame element with just a solid red background. I think it's just a limitation of the Frame element when rendering HTML. It uses the WebBrowser control which is just a wrapper around the MSHTML ActiveX control, I believe.

Hmm, it might be fun to write a Web browser in WPF...

引用内容:

Frame element is wrapping window with handle, thus it can not have animated opacity. However, you can create VisualBrush over Frame and Animate it

看来对HTML页面是真的没办法了,自己另外想办法实现咯:(

Related articles 您可能对这些文章也感兴趣:

 
Related comments 与该文相关的评论:(我也想说几句)
Add a comment 我来说两句: 
禁止表情
禁止UBB
禁止图片
识别链接
识别关键字
表  情
arrow
用户名:   密码:  (匿名可不写) 同时注册?
验证码:   看不清?换个图片  看不清楚?换个图片

 
Copyright © 2005-2008,Fdream All Rights Reserved
Processed in 0.2187528 second(s) , unknow queries
Powered by OWord V0.1, Even Not Alpha
(此博客程序为半成品,请勿索取,以免给您的心灵造成创伤^_^)
鄂ICP备05026031号