简体   繁体   中英

Change page transition animation in Xamarin Forms with Prism

Is it possible to change page transition animation in Xamarin Forms with Prism's INavigationService? I'd like to have fade animation on Android, like when using default Xamarin Forms PushAsync/PopAsync mechanism, or at least left/right sliding instead of up/down.

Prism uses Xamarin.Forms built-in PushAsync/PopAsync methods. This also means it uses the default XF animations automatically. If you want custom animations, this is not something that Prism is not responsible for.

Now building custom page transitions in XF isn't very clear cut. Here are a couple of links that should get you going in the ight direction.

https://forums.xamarin.com/discussion/18818/custom-page-transitions-with-xamarin-forms/p1

https://kernel32.net/2016/06/25/xamarin-forms-transitions.html

Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM