ObjectKeyFrame.KeyTime Property

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

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

public KeyTime KeyTime { get; set; }
<DiscreteObjectKeyFrame KeyTime="keyTimeString"/>

XAML Values


A string in the form [days.]hours:minutes:seconds[.fractionalSeconds]. For more information, see KeyTime.

Property Value

Type: System.Windows.Media.Animation.KeyTime
The time at which the key frame's current value should be equal to its Value property. The default is null.

Dependency property identifier field: KeyTimeProperty

The string format for specifying a KeyTime is [days.]hours:minutes:seconds[.fractionalSeconds]. For details, see KeyTime.

DiscreteObjectKeyFrame is shown in the XAML usages for ObjectKeyFrame properties because DiscreteObjectKeyFrame is the only object animation keyframe type that the Silverlight animation system can support.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.