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; }
public SimpleKeyFrameItem(double time, KeyFramedTimelineItem keyFramedTimelineItem) : base(time, (TimelineItem)keyFramedTimelineItem) { }