Specifies when a particular key frame should take place during an animation.
Assembly: System.Windows (in System.Windows.dll)
Thetype exposes the following members.
|Equals(KeyTime)||Indicates whether a specified is equal to this .|
|Equals(Object)||Indicates whether a is equal to this . (Overrides ValueType.Equals(Object).)|
|Equals(KeyTime, KeyTime)||Indicates whether two values are equal.|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)|
|FromTimeSpan||Creates a new , using the supplied TimeSpan.|
|GetHashCode||Returns a hash code representing this . (Overrides ValueType.GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string representation of this . (Overrides ValueType.ToString().)|
Each key frame's specifies when that key frame ends. It does not specify how long the key frame plays. The amount of time a key frame plays is determined by when the key frame ends, when the previous key frame ended, and the animation's duration. See Key-Frame Animations for more information.
In WPF, a KeyTime can be specified using several formats, including a uniform or paced key system. In Silverlight 5, a can only specify a TimeSpan.
Specifying a by only an integer without any time span literal characters such as : or . will result in a of that number of days! This is seldom the intended result. Usually you specify time spans in seconds. As such, the string must include preceding zero values for hours and minutes, along with the appropriate literal : characters as separators between hours, minutes, and seconds. For instance, to specify a of five seconds, the string would be 0:0:5 (0:0:05 is equivalent).
Object element usage in XAML is possible but has no practical usage. You cannot declare a as a usable, shareable object in a ResourceDictionary.
In the XAML usage,  indicates optional values; the  are not literals. The : (colon) and . (period) characters are both literals, and delimit the h:m:s string form of a common time span, or the optional days and fractionalSeconds values.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.