public void RemoveClocks(IEnumerable <AnimationTimelineClock> newClocks, AnimationLayerKey key) { AnimationLayer animationLayer = GetAnimationLayer(key); animationLayer.RemoveClocks(newClocks); if (key != AnimationLayerKey.Default && animationLayer.IsEmpty) { RemoveAnimationLayer(key); } LayerInvalidated.Raise(this); }
public void SetClocks(IEnumerable <AnimationTimelineClock> newClocks, object defaultDestinationValue, AnimationLayerKey key) { if (newClocks.Any() || key == AnimationLayerKey.Default) { GetAnimationLayer(key).SetClocks(newClocks, defaultDestinationValue); } else { RemoveAnimationLayer(key); } LayerInvalidated.Raise(this); }
public void AddClocks(IEnumerable <AnimationTimelineClock> newClocks, AnimationLayerKey key) { GetAnimationLayer(key).AddClocks(newClocks); LayerInvalidated.Raise(this); }
private void OnAnimationLayerClockInvalidated(object sender, EventArgs e) { LayerInvalidated.Raise(this); }