Share via


KeyFrames Property (PointAnimationUsingKeyFrames)

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

XAML Property Element Usage
<PointAnimationUsingKeyFrames ...>
  oneOrMorePointKeyFrames
</PointAnimationUsingKeyFrames>
Scripting
value = object.KeyFrames
object.KeyFrames = value

Property Value

PointKeyFrameCollection

The collection of PointKeyFrame 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 PointKeyFrameCollection is an example of an implicit collection syntax, where you can omit the PointKeyFrameCollection object element, as well as the <PointAnimationUsingKeyFrames.KeyFrames> property element. Instead, you generally include one or more DiscretePointKeyFrame, LinearPointKeyFrame, or SplinePointKeyFrame object elements as child elements of a PointAnimationUsingKeyFrames. For more information about XAML implicit collection syntax, see XAML Syntax Overview. (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.)

Applies To

PointAnimationUsingKeyFrames

See Also

Silverlight Key-Frame Animations Overview
Silverlight Geometries Overview
Shapes and Drawing in Silverlight Overview
PointAnimation