ClockController.Begin Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Sets the target Clock to begin at the next tick.

Namespace:   System.Windows.Media.Animation
Assembly:  PresentationCore (in PresentationCore.dll)

public void Begin()

This method causes the target Clock to behave as though its Timeline object's BeginTime were set to the time of the next tick. The timeline's actual BeginTime setting is ignored (but not changed).

This method changes the target clock's CurrentState to Active. The Begin method does not resume a paused clock.

This method has no effect on the timing tree until the next time a tick is processed. As a side-effect, the appropriate events will also not be raised until then. Calling this method triggers the CurrentStateInvalidated and CurrentGlobalSpeedInvalidated events.

.NET Framework
Available since 3.0
Return to top