Exemple #1
0
        private static void Animate(object oldValue, object newValue, FrameworkElement target, Action<DependencyObject> action)
        {
            if (Equals(oldValue, newValue) && Mode != AnimatableMode.Forced)
                return;

            if (Mode != AnimatableMode.Disabled)
                target.FadeOutThenIn(() => action(target));
            else
                action(target);
        }