public AnimatableRootClock(IRootClock rootClock, bool isConnected) { this.rootClock = rootClock; this.isConnected = isConnected; clocks = new List <IClock>(); }
public AnimatableRootClock(IRootClock rootClock, bool isConnected) { this.rootClock = rootClock; this.isConnected = isConnected; clocks = new List<IClock>(); }
public void Begin(IRootClock rootClock) { this.rootClock = rootClock; VerifyRootClock(); beginTime = rootClock.Time; currentFillBehavior = Timeline.FillBehavior; rootClock.AddClock(this); Tick(rootClock.Time); }
protected override void OnInheritanceParentChanged(DependencyObject oldInheritanceParent, DependencyObject newInheritanceParent) { base.OnInheritanceParentChanged(oldInheritanceParent, newInheritanceParent); RootClock = newInheritanceParent is IAnimatable ? ((IAnimatable)newInheritanceParent).RootClock : null; }