wpf 带有导航服务的页面之间的动画转换
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21555674/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Animation transitions between pages with Navigation Service
提问by Dim
I am using WPF in C# and NavigationService. For example:
我在 C# 和 NavigationService 中使用 WPF。例如:
this.NavigationService.Navigate(new CategoryPage());
How can I add transition fade or any other animation to navigate between pages?
如何添加过渡淡入淡出或任何其他动画以在页面之间导航?
回答by Jerther
See this answer: https://stackoverflow.com/a/2137596/2498426
看到这个答案:https: //stackoverflow.com/a/2137596/2498426
It worked fine for me, but I had to replace ActualHeight by Height. However, the result is so choppy that I personnaly decided not to use animations at all.
它对我来说很好用,但我不得不用高度替换 ActualHeight。然而,结果是如此不稳定,以至于我个人决定根本不使用动画。

