public async Task FadeOutPage() { if (!Service.Platform.AnimationsEnabled) { return; } if (disableAnimation) { ImagesRoot.SetVisualOpacity(0); disableAnimation = false; } else { await FadeOut.StartAsync(ImagesRoot); } }
public void FadeInPage() { if (!Service.Platform.AnimationsEnabled) { return; } var openLeft = ConnectedAnimationService.GetForCurrentView().GetAnimation("openL"); var openRight = ConnectedAnimationService.GetForCurrentView().GetAnimation("openR"); if (openLeft != null || openRight != null) { ImagesRoot.SetVisualOpacity(1); } else { FadeIn.Start(ImagesRoot); } openLeft?.TryStart(LeftImage); openRight?.TryStart(RightImage); }