KeyFrames (PointAnimationUsingKeyFrames)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

<PointAnimationUsingKeyFrames ...>
  oneOrMorePointKeyFrames
</PointAnimationUsingKeyFrames>
value = object.KeyFrames
object.KeyFrames = value

XAML Values

Value

Description

oneOrMorePointKeyFrames

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

Property Value

Type: PointKeyFrameCollection

The collection of PointKeyFrame objects that define the animation.

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

Managed Equivalent

KeyFrames

Remarks

The XAML syntax for properties that use a PointKeyFrameCollection is an example of an implicit collection syntax, where you can omit the PointKeyFrameCollection object element and the PointAnimationUsingKeyFrames.KeyFrames property element. Instead, you generally include one or more DiscretePointKeyFrame, LinearPointKeyFrame, or SplinePointKeyFrame object elements as child elements of a PointAnimationUsingKeyFrames object. Explicitly including a PointKeyFrameCollection 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.

See Also

Reference