IXRSplinePointKeyFrame (Compact 2013)

3/28/2014

This class defines an animation segment that animates from the x-y point value of the previous key frame to its own x-y point value by using splined interpolation.

Syntax

class IXRSplinePointKeyFrame : public IXRPointKeyFrame

Inheritance Hierarchy

IXRDependencyObject

    IXRPointKeyFrame

        IXRSplinePointKeyFrame

Methods

Method

Description

IXRSplinePointKeyFrame::GetKeySpline

Retrieves two control points that define animation progress for this key frame.

IXRSplinePointKeyFrame::SetKeySpline

Sets two control points that define animation progress for this key frame.

Thread Safety

Members of this class are thread-safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

You can use this class to animate the value of an x-y point along a set of key frames by putting it in an IXRPointKeyFrameCollection that belongs to an IXRPointAnimationUsingKeyFrames object.

A key frame defines a segment of the IXRPointAnimationUsingKeyFrames object to which it belongs. Each key frame has a target value for an x,y coordinate and a key-time. The key-time specifies the time at which the target value of the key frame is reached. A key frame animates from the target value of the previous key frame to its own target value. It starts when the previous key frame ends, and it ends when its own key-time is reached.

Spline key frames like IXRSplinePointKeyFrame create a variable transition between values that is determined by the key spline. You can set the key spline by calling IXRSplinePointKeyFrame::SetKeySpline. Spline interpolation can be used to achieve more realistic timing effects such as acceleration and deceleration.

When you create a class instance, use an IXRSplinePointKeyFramePtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

You can also define a spline point key-frame in Microsoft Silverlight 3 XAML. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this brush in the source XAML for your application, see the SplinePointKeyFrame Class on MSDN.

.NET Framework Equivalent

System.Windows.Media.Animation.SplinePointKeyFrame

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Animation Storyboards
Classes for Visual Appearance