KeyFrames Property (DoubleAnimationUsingKeyFrames)
Gets or sets the collection of DoubleKeyFrame objects that define the animation.
XAML Usage | |
Scripting |
value = object.KeyFrames object.KeyFrames = value |
Property Value
The collection of DoubleKeyFrame objects that define the animation.
This property is read/write. The default value is an empty collection.
Remarks
The XAML syntax for properties that use a DoubleKeyFrameCollection is an example of an implicit collection syntax, where you can omit the DoubleKeyFrameCollection object element, as well as the <DoubleAnimationUsingKeyFrames.KeyFrames> property element. Instead, you generally include one or more DiscreteDoubleKeyFrame, LinearDoubleKeyFrame, or SplineDoubleKeyFrame object elements as child elements of a DoubleAnimationUsingKeyFrames. For more information about XAML implicit collection syntax, see XAML Syntax Overview. (Explicitly including a DoubleKeyFrameCollection object element is permissible XAML syntax, and might be useful if you intend to name the collection in XAML and manipulate its contents through script later.)