ClockController.SkipToFill 方法


将目标 Clock 的当前时间向前调至其活动周期的结束时间。Advances the current time of the target Clock to the end of its active period.

 void SkipToFill();
public void SkipToFill ();
member this.SkipToFill : unit -> unit
Public Sub SkipToFill ()


此方法将目标时钟的当前时间提升到其活动周期的结束时间;此时时钟的行为由 FillBehavior 其的设置指定 TimelineThis method advances the target clock's current time to the end of its active period; the clock's behavior at this point is specified by the FillBehavior setting of its Timeline. 如果时间线的 FillBehavior 属性设置为 HoldEnd ,则时钟将填充; 如果属性设置为 Stop ,则时钟将停止。If the timeline's FillBehavior property is set to HoldEnd, the clock fills; if the property is set to Stop, the clock stops.

仅当目标时钟的为时,此方法才 CurrentState 有效 ActiveThis method has an effect only if the target clock's CurrentState is Active.

直到下一次处理计时周期时,此方法才会对计时树产生任何影响。This method has no effect on the timing tree until the next time a tick is processed. 副作用是,在此之前,也不会引发相应的事件。As a side-effect, the appropriate events also will not be raised until then.

将情节提要前进到其填充期会触发 CurrentGlobalSpeedInvalidatedCurrentStateInvalidated 事件。Advancing a storyboard to its fill period triggers the CurrentGlobalSpeedInvalidated and CurrentStateInvalidated events.