Exemplo n.º 1
0
        protected override void ValidateCore()
        {
            base.ValidateCore();
            if (!this.hasSelectedKeyFrameDirty)
            {
                return;
            }
            bool flag = false;

            for (int index = 0; index < this.Children.Count; ++index)
            {
                CompoundPropertyTimelineItem propertyTimelineItem = this.Children[index] as CompoundPropertyTimelineItem;
                KeyFramedTimelineItem        framedTimelineItem   = this.Children[index] as KeyFramedTimelineItem;
                if (propertyTimelineItem != null && propertyTimelineItem.HasSelectedKeyFrame || framedTimelineItem != null && framedTimelineItem.HasSelectedKeyFrame)
                {
                    flag = true;
                    break;
                }
            }
            this.HasSelectedKeyFrame      = flag;
            this.hasSelectedKeyFrameDirty = false;
        }
Exemplo n.º 2
0
 public SimpleKeyFrameItem(double time, KeyFramedTimelineItem keyFramedTimelineItem)
     : base(time, (TimelineItem)keyFramedTimelineItem)
 {
 }