BeginTime Property

Gets or sets the time at which this Timeline should begin.

<object BeginTime="TimeSpan" .../>
value = object.BeginTime
object.BeginTime = value

Property Value


The start time of the time line.

This property is read/write. The default value is null, which corresponds to a value of 0.


See TimeSpan for the string format you use to specify a BeginTime value. Creating a TimeSpan in XAML is only possible through a type conversion syntax when setting a property that takes a TimeSpan as an attribute string.

You can set the BeginTime value in script using object.BeginTime="durationstring" syntax. You must use a quoted string, which then uses the same type conversion behavior as the XAML attribute syntax. You can set the value on a running animation, and the value will apply the next time the same animation is started. You can get the BeginTime value in script using value=object.BeginTime syntax. However, if the BeginTime for an animation is not explicitly set (either through scripting or XAML), then the value of object.BeginTime will be null. A null value for BeginTime has the same implied effect on an animation as does a TimeSpan explicitly set to "0".

Applies To

ColorAnimation, ColorAnimationUsingKeyFrames, DoubleAnimation, DoubleAnimationUsingKeyFrames, PointAnimation, PointAnimationUsingKeyFrames, Storyboard

See Also

Animation Overview

Community Additions