Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 3.04 KB

pointanimationusingkeyframes.md

File metadata and controls

54 lines (36 loc) · 3.04 KB
-api-id -api-type
T:Windows.UI.Xaml.Media.Animation.PointAnimationUsingKeyFrames
winrt class

Windows.UI.Xaml.Media.Animation.PointAnimationUsingKeyFrames

-description

Animates the value of a Point property along a set of KeyFrames.

-xaml-syntax

<PointAnimationUsingKeyFrames>
  oneOrMorePointKeyFrames
</PointAnimationUsingKeyFrames>

-remarks

-examples

The following example moves an ellipse along a triangular path. The example uses the PointAnimationUsingKeyFrames class to animate the Center property of an EllipseGeometry. This animation uses three key frames in the following manner:

  1. During the first half second, it uses an instance of the LinearPointKeyFrame class to move the ellipse along a path at a steady rate from its starting position. Linear key frames such as LinearPointKeyFrame create a smooth linear interpolation between values.
  2. During the end of the next half second, it uses an instance of the DiscretePointKeyFrame class to suddenly move the ellipse along the path to the next position. Discrete key frames like DiscretePointKeyFrame create sudden jumps between values.
  3. During the final two seconds, it uses an instance of the SplinePointKeyFrame class to move the ellipse back to its starting position. Spline key frames like SplinePointKeyFrame create a variable transition between values according to the values of the KeySpline property. In this example, the animation begins slowly and speeds up exponentially toward the end of the time segment.

[!code-xamlPointanimationusingkeyframes]

[!code-csharpPointanimationusingkeyframes_cs]

[!code-vbPointanimationusingkeyframes_cs]

-see-also

Storyboarded animations p://msdn.microsoft.com/library/0cbceea0-2b0e-44a1-a09a-f7a939632f3a)