Exemplo n.º 1
0
        public override Task Appearing(View content, PopupPage page)
        {
            if (HasBackgroundAnimation)
            {
                return(page.FadeTo(1, DurationIn, EasingIn));
            }
            if (content != null)
            {
                return(content.FadeTo(1, DurationIn, EasingIn));
            }

            return(Task.FromResult(0));
        }
Exemplo n.º 2
0
        public override Task Disappearing(View content, PopupPage page)
        {
            _defaultOpacity = page.Opacity;

            if (HasBackgroundAnimation)
            {
                return(page.FadeTo(0, DurationOut, EasingOut));
            }
            if (content != null)
            {
                return(content.FadeTo(0, DurationOut, EasingOut));
            }

            return(Task.FromResult(0));
        }