Xamarin.Formsはそれを行うための機能を持っていませんが、回避策があります。
ページのプッシュまたはポップ時にアニメーションの切り替えを無効にすると、トランジションの前後にカスタムアニメーションを実行できます。
ので、同じように:
// First animate the opacity of the current page
new Animation(opacity => page.Opacity = opacity/100, 100, 0)
.Commit(this, "PageExitAnimation", 1, 350, Easing.CubicInOut, (d, b) =>
{
var otherPage = new OtherPage() { Opacity = 0 }; // Create the page with 0 opacity to animate later
NavigationPage.Navigation.PushAsync(otherPage, false); // Push the new page, as the current page is already with 0 opacity, without animation
otherPage.FadeTo(1, 350, Easing.CubicInOut); // Animate the fade of the next page
}
あなたは、だけではなく、不透明度を変更することで、アニメーションのいずれかの種類を行うには、この概念を適用するなどTranslationY、TranslationXを、変更することができますが、複雑なアニメーションをしたい場合、あなたXamarin.Formsアニメーションを学ぶためにあなたの時間を取るだけでなく、同時に複数のものを変更することができます:)
希望に役立ちます! :D
AFAIK最近まで、これはxamarin形式ではサポートされていませんでした。 Alexandr Nikulinはこれを行うことができるコンポーネントを書いています。 https://github.com/AlexandrNikulin/AnimationNavigationPage –