Share via


IXRKeySpline (Windows Embedded CE 6.0)

1/6/2010

This class is used by a spline key frame to define animation progress.

Syntax

class IXRKeySpline : public IXRDependencyObject

Methods

Method Description

IXRKeySpline::GetControlPoint1

Retrieves the first control point used to define a Bézier curve that describes this key spline.

IXRKeySpline::GetControlPoint2

Retrieves the second control point used to define a Bézier curve that describes this key spline.

IXRKeySpline::SetControlPoint1

Sets the first control point used to define a Bézier curve that describes this key spline.

IXRKeySpline::SetControlPoint2

Sets the second control point used to define a Bézier curve that describes this key spline.

Remarks

You can use IXRKeySpline to calculate a curved line that represents the rate of interpolation over the duration of the animation. The starting point, endpoint, two control points on the line each affect the shape of the adjacent curve.

Key splines drawn on a coordinate system always have the starting point at (0,0) and the endpoint at (1,1). This is why you define only the two control points in IXRKeySpline::SetControlPoint1 and IXRKeySpline::SetControlPoint2. The resulting curve specifies how an animation is interpolated during a time segment. That is, the curve represents the rate of change in the animation's target value.

A key spline that is a straight line from the starting point (0,0) to the endpoint (1,1) describes an animation with a constant rate of change. When each key frame in an animation has a different key spline, the rate of change during the animation is constantly shifting.

You can specify an IXRKeySpline object in IXRSplineDoubleKeyFrame::SetKeySpline, IXRSplineColorKeyFrame::SetKeySpline, and IXRSplinePointKeyFrame::SetKeySpline.

You can also define a key spline in Microsoft Silverlight 2 XAML. For information about the differences between XAML in Silverlight for Windows Embedded and Silverlight 2, see Differences Between Silverlight for the Web and Silverlight for Windows Embedded. For more information about how to define this element in the source XAML for your application, see this Microsoft Web site.

Inheritance Hierarchy

IXRDependencyObject

    IXRKeySpline

.NET Framework Equivalent

System.Windows.Media.Animation.KeySpline

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Classes for Visual Appearance and Behavior

Other Resources