为Metro XAML元素的Visibility属性设置动画
问题描述:
我的C#metro应用程序基本上是用户提交的表单,我根据用户选择隐藏/显示某些字段。
My C# metro app is basically a form that the user submits and I hide/show certain fields based on selections the user makes.
有没有办法为隐藏或显示的字段设置动画? (例如淡入/淡出)
Is there a way to animate the fields that get hidden or shown? (E.g. fade in/out)
答
绝对!看看FadeIn和FadeOut 主题动画
如果需要更精细的控制,您还可以为元素的不透明度值设置动画。
You can also animate the elements' Opacity values if you need finer control.
这两种技术都在
快速入门:动画制作您的用户界面文档。
- Rob