KeyFrames (DoubleAnimationUsingKeyFrames)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets or sets the collection of DoubleKeyFrame objects that define an animation.
<DoubleAnimationUsingKeyFrames ...>
oneOrMoreDoubleKeyFrames
</DoubleAnimationUsingKeyFrames>
value = object.KeyFrames
object.KeyFrames = value
XAML Values
Value |
Description |
---|---|
oneOrMoreDoubleKeyFrames |
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. |
Property Value
Type: DoubleKeyFrameCollection
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 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.