示例#1
0
 public async Task FadeOutPage()
 {
     if (!Service.Platform.AnimationsEnabled)
     {
         return;
     }
     if (disableAnimation)
     {
         ImagesRoot.SetVisualOpacity(0);
         disableAnimation = false;
     }
     else
     {
         await FadeOut.StartAsync(ImagesRoot);
     }
 }
示例#2
0
        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);
        }