Exemplo n.º 1
0
        public static async Task SlideAndFadeUpFromBottomAsync(this FrameworkElement element, float duration, bool keepMargin = true, int height = 0)
        {
            var sb = new Storyboard();

            sb.AddSlideBottomUp(duration, height == 0 ? element.ActualHeight : height, .9f, keepMargin);
            sb.AddFadeIn(duration);

            await DoAnimation(element, duration, sb);
        }