コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public void AddClocks(IEnumerable <AnimationTimelineClock> newClocks, AnimationLayerKey key)
 {
     GetAnimationLayer(key).AddClocks(newClocks);
     LayerInvalidated.Raise(this);
 }
コード例 #4
0
 private void OnAnimationLayerClockInvalidated(object sender, EventArgs e)
 {
     LayerInvalidated.Raise(this);
 }