A class that enables you to associate easing functions with a PointAnimationUsingKeyFrames key frame animation.
Assembly: PresentationCore (in PresentationCore.dll)
Initializes a new instance of theclass.
Initializes a new instance of the Point value.class with the specified
Initializes a new instance of the Point value and key time.class with the specified
|EasingPointKeyFrame(Point, KeyTime, IEasingFunction)|
Initializes a new instance of the Point value, key time, and easing function.class with the specified
Gets a value that indicates whether the object can be made unmodifiable. (Inherited from Freezable.)
Gets or sets the easing function applied to the key frame.
Gets a value that indicates whether the object is currently modifiable. (Inherited from Freezable.)
Gets a value that indicates whether this instance is currently sealed (read-only).(Inherited from DependencyObject.)
Gets or sets the key frame's target value. (Inherited from PointKeyFrame.)
This class is used as part of a PointKeyFrameCollection in conjunction with a PointAnimationUsingKeyFrames to animate a Point property value along a set of key frames. This PointKeyFrame interpolates between the Point value of the previous key frame and its own value linearly with an easing function to produce its output value.
The following example shows how to use key frames with easing functions associated with them to create an animation that simulates an oval going up in the air and falling back down, where it bounces to a stop.
<Path Fill="Blue"> <Path.Triggers> <EventTrigger RoutedEvent="Path.MouseDown"> <BeginStoryboard> <Storyboard> <PointAnimationUsingKeyFrames Storyboard.TargetProperty="Center" Storyboard.TargetName="MyAnimatedEllipseGeometry"> <!-- This key frame animates the ellipse up to the crest, where it slows down and stops. --> <EasingPointKeyFrame Value="50,20" KeyTime="00:00:02"> <EasingPointKeyFrame.EasingFunction> <CubicEase EasingMode="EaseOut"/> </EasingPointKeyFrame.EasingFunction> </EasingPointKeyFrame> <!-- This key frame animates the ellipse back down and makes it bounce. --> <EasingPointKeyFrame Value="50,200" KeyTime="00:00:06"> <EasingPointKeyFrame.EasingFunction> <BounceEase Bounces="5" EasingMode="EaseOut"/> </EasingPointKeyFrame.EasingFunction> </EasingPointKeyFrame> </PointAnimationUsingKeyFrames> </Storyboard> </BeginStoryboard> </EventTrigger> </Path.Triggers> <Path.Data> <!-- Describes an ellipse. --> <EllipseGeometry x:Name="MyAnimatedEllipseGeometry" Center="50,200" RadiusX="15" RadiusY="15" /> </Path.Data> </Path>
Available since 4.0
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.