KeyFrames (DoubleAnimationUsingKeyFrames)


Gets or sets the collection of DoubleKeyFrame objects that define an animation.

<DoubleAnimationUsingKeyFrames  ...>
value = object.KeyFrames
object.KeyFrames = value




One or more DoubleKeyFrame object elements that define the key frames for the animation. These can be any mixture of LinearDoubleKeyFrame, DiscreteDoubleKeyFrame, and SplineDoubleKeyFrame. Object elements defined here become members of the collection held by the KeyFrames property, when accessed by scripting at run time.

Type: DoubleKeyFrameCollection

The collection of DoubleKeyFrame objects that define the animation.

This property is read/write. The default value is an empty collection.

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 and the DoubleAnimationUsingKeyFrames.KeyFrames property element. Instead, you generally include one or more DiscreteDoubleKeyFrame, LinearDoubleKeyFrame, or SplineDoubleKeyFrame object elements as child elements of a DoubleAnimationUsingKeyFrames object. 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.

Community Additions