KeyTime Property
Collapse the table of content
Expand the table of content

ObjectKeyFrame.KeyTime Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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)
XMLNS for XAML: Not mapped to an xmlns.

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 Windows Phone animation system can support.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2016 Microsoft