次の方法で共有


IXRSplineColorKeyFrame (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

class IXRSplineColorKeyFrame : public IXRColorKeyFrame

Methods

Method Description

IXRSplineColorKeyFrame::GetKeySpline

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

IXRSplineColorKeyFrame::SetKeySpline

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

Remarks

You can use this class to animate a color value along a set of key frames by putting it in an IXRColorKeyFrameCollection that belongs to an IXRColorAnimationUsingKeyFrames object.

A key frame defines a segment of the IXRColorAnimationUsingKeyFrames object to which it belongs. Each key frame has a target color value 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 IXRSplineColorKeyFrame create a variable transition between values that is determined by the key spline. You can set the key spline by calling IXRSplineColorKeyFrame::SetKeySpline. Splined interpolation can be used to achieve more realistic timing effects such as acceleration and deceleration.

You can also define a spline color key-frame 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 brush in the source XAML for your application, see this Microsoft Web site.

Inheritance Hierarchy

IXRDependencyObject

    IXRColorKeyFrame

        IXRSplineColorKeyFrame

.NET Framework Equivalent

System.Windows.Media.Animation.SplineColorKeyFrame

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