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); }
public void RemoveAnimationClocks(DependencyProperty dependencyProperty, IEnumerable <AnimationTimelineClock> animationClocks, object layerOwner) { AnimationExpression animationExpression = GetInitializedAnimationExpression(dependencyProperty); animationExpression.RemoveClocks(animationClocks, layerOwner); }