如何动画页面导航过渡的WinRT的? [英] How to animate page navigate transitions in WinRT?
本文介绍了如何动画页面导航过渡的WinRT的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在WinRT中,以
this.Frame.Navigate(typeof(AnotherPage));
我怎么能消失的第一页和第二页褪色?我记得的Windows Phone 7有一个装配做到在XAML。我怎样才能做到这一点在WinRT中?
how can I fade away the first page and fade in the second page? I remember Windows Phone 7 had an assembly to do it in XAML. How can I do it in WinRT?
推荐答案
这应该快速淡入效果添加到您的网页的所有元素。这可能是您的需求已经足够了。
This should add a quick fade-in effect to all elements in your page. It might be good enough for your needs.
<Page>
<Page.Transitions>
<TransitionCollection>
<ContentThemeTransition HorizontalOffset="0" VerticalOffset="0"/>
</TransitionCollection>
</Page.Transitions>
....
</Page>
不过,我建议你离开的水平和垂直的默认值偏移,它会仿效WinRT中的标准过渡。
But I would suggest you leave the default values for horizontal and vertical offset, it would emulate the standard transitions in WinRT.
这篇关于如何动画页面导航过渡的WinRT的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文