Exemplo n.º 1
0
        private AnimationExpression GetInitializedAnimationExpression(DependencyProperty dependencyProperty)
        {
            IDependencyPropertyValueEntry entry = GetValueEntry(dependencyProperty);
            AnimationExpression           animationExpression = entry.GetAnimationValue(false) as AnimationExpression;

            if (animationExpression == null)
            {
                animationExpression = new AnimationExpression(this, dependencyProperty);

                entry.SetAnimationValue(animationExpression);
            }

            return(animationExpression);
        }
Exemplo n.º 2
0
        public void RemoveAnimationClocks(DependencyProperty dependencyProperty, IEnumerable <AnimationTimelineClock> animationClocks, object layerOwner)
        {
            AnimationExpression animationExpression = GetInitializedAnimationExpression(dependencyProperty);

            animationExpression.RemoveClocks(animationClocks, layerOwner);
        }