Пример #1
0
        public static async Task SlideAndScale(Button btn, double width, float milliSeconds, double scaleFrom, double scaleTo, double topleftFrom, double topleftTo)
        {
            var sb = new Storyboard();

            sb.AddScale(milliSeconds, scaleFrom, scaleTo, scaleFrom, scaleTo);
            sb.AddCanvasSlide(milliSeconds, topleftFrom, topleftTo, topleftFrom, topleftTo);

            sb.Begin(btn);

            btn.Visibility = Visibility.Visible;

            await Task.Delay((int)milliSeconds);
        }