コード例 #1
0
        public static async Task SlideInFromBottom(this FrameworkElement element, float seconds, int width = 0)
        {
            var sb = new Storyboard();

            sb.AddSlideFromBotton(seconds, element.ActualHeight);
            sb.AddfadeIn(seconds);

            sb.Begin(element);

            element.Visibility = Visibility.Visible;

            await Task.Delay((int)seconds * 1000);
        }