Share via


KeyTime Property (DoubleKeyFrame)

Gets or sets the time at which the key frame's target Value should be reached.

XAML
<object KeyTime="KeyTime" .../>
Scripting
value = object.KeyTime
object.KeyTime = value

Property Value

KeyTime

The time at which the key frame's current value should be equal to its Value property.

This property is read/write. The default value is null.

Remarks

The string format for specifying a KeyTime is [days.]hours:minutes:seconds[.fractionalSeconds]. See KeyTime.

Creating a Duration, KeyTime, RepeatBehavior, or TimeSpan in XAML is only possible through a type conversion syntax when setting a property such as KeyTime that takes one of these types, with the value specified as an attribute string. The string format for all three is identical except that Duration can take the literals "Automatic" and "Forever" and RepeatBehavior can take the literal "Forever".

Although they can be obtained as objects from property values, the properties and methods on Duration, KeyTime or TimeSpan have very little practical usage other than possibly resetting the Seconds property.

Applies To

DiscreteDoubleKeyFrame, LinearDoubleKeyFrame, SplineDoubleKeyFrame

See Also

Animation Overview