是否可以使用 Prism 的 INavigationService 更改 Xamarin Forms 中的页面过渡动画?我希望在 Android 上有淡入淡出动画,就像使用默认的 Xamarin Forms PushAsync/PopAsync 机制时一样,或者至少向左/向右滑动而不是向上/向下滑动。
Prism 使用 Xamarin.Forms 内置的 PushAsync/PopAsync 方法。这也意味着它会自动使用默认的 XF 动画。如果你想要自定义动画,这不是Prism不负责的。
现在,在 XF 中构建自定义页面转换并不是很明确。这里有几个链接应该可以帮助您朝着正确的方向前进。
https://forums.xamarin.com/discussion/18818/custom-page-transitions-with-xamarin-forms/p1 https://forums.xamarin.com/discussion/18818/custom-page-transitions-with-xamarin-forms/p1
https://kernel32.net/2016/06/25/xamarin-forms-transitions.html https://kernel32.net/2016/06/25/xamarin-forms-transitions.html
祝你好运!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)