Exemple #1
0
        public static void BeginDoubleAnimation(this DependencyObject target, string path, double?to,
                                                Duration duration)
        {
            var animation = new DoubleAnimation
            {
                To       = to,
                Duration = duration,
                EnableDependentAnimation = true
            };

            target.BeginAnimation(animation, path);
        }
Exemple #2
0
        public static void BeginColorAnimation(this DependencyObject target, string path, Color to, Duration duration)
        {
            var animation = CreateColor(to, duration, path);

            target.BeginAnimation(animation, path);
        }
Exemple #3
0
        public static void BeginPointAnimation(this DependencyObject target, string path, Point to, Duration duration)
        {
            var animation = CreatePoint(to, duration, path);

            target.BeginAnimation(animation, path);
        }