如何在页面加载时淡入控件? [英] How can I fade-in a control when a page loads?

查看:58
本文介绍了如何在页面加载时淡入控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在页面加载时淡入控件?也就是说,当页面显示然后逐渐淡入到完整外观时,控件是空白的?这可以通过时间轴/故事板/关键帧完成吗?

谢谢!

Is there a way to fade-in controls in when a page loads?  That is, the controls are blank when the page displays then gradually fade in to full appearance?  Can this be done with timelines/storyboards/keyframes?

Thanks!

推荐答案

是的,这可以通过故事板轻松完成。创建一个新的故事板(将自动设置为"加载窗口"触发器)并创建一个关键帧。将元素的不透明度设置为0%。然后在时间轴上停留几秒钟并添加关键帧并将不透明度设置为100%。将此应用于任意数量的元素或网格或您拥有的任何内容。
Yes this can easily be done with storyboards. Create a new storyboard (which will be automatically be set to the 'window loaded' trigger) and create a keyframe. Set the opacity of the element to 0%. Then go out a few seconds on the timeline and add a keyframe and set the opacity to 100%. Apply this to any number of elements or grids or whatever content you have.


这篇关于如何在页面加载时淡入控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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