Поделиться через


KeyTime (DoubleKeyFrame)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

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

Property Value

Type: 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.

Managed Equivalent

KeyTime

Remarks

The string format for specifying a KeyTime is [days.]hours:minutes:seconds[.fractionalSeconds]. For more information, see the KeyTime reference topic.

Creating a Duration, KeyTime, RepeatBehavior, or TimeSpan in XAML is possible only through a type conversion syntax, by setting a property such as KeyTime that takes one of these types and specifying the value 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, and TimeSpan have very little practical usage other than possibly resetting the Seconds property.

For more information on basic concepts, see Key-Frame Animations. Note that the Key-Frame Animations topic is written primarily for users of the managed API, and may not have code examples or specific information that address the JavaScript API scenarios.