Share via


IXRColorAnimationUsingKeyFrames (Windows Embedded CE 6.0)

1/6/2010

This class animates the value of a color along a set of key frames over a specified duration.

Syntax

class IXRColorAnimationUsingKeyFrames : public IXRTimeline

Methods

Methods Description

IXRColorAnimationUsingKeyFrames::GetKeyFrames

Retrieves the collection of IXRColorKeyFrame objects that define the animation.

Remarks

IXRColorAnimationUsingKeyFrames stores a collection of IXRColorKeyFrame objects that together define the key frames for the animation. The collection of target values for the key-frame animation is retrieved by the IXRColorAnimationUsingKeyFrames::GetKeyFrames method. Each IXRColorKeyFrame defines a segment of the animation with its own target value and key time. When the animation runs, it progresses from one key value to the next at the specified key times.

There are three kinds of IXRColorKeyFrame derived classes, one for each supported interpolation method: IXRLinearColorKeyFrame, IXRDiscreteColorKeyFrame, and IXRSplineColorKeyFrame.

Unlike an IXRColorAnimation, an IXRColorAnimationUsingKeyFrames can have more than two target values. You can also control the interpolation method of individual IXRColorKeyFrame segments.

You can use the methods inherited from the base class IXRTimeline to define the timeline for this animation.

A collection of timeline objects, including IXRColorAnimationUsingKeyFrames objects, belongs to an IXRStoryboard object.

You can also define a key-frames color animation in Microsoft Silverlight 2. 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

    IXRTimeline

        IXRColorAnimationUsingKeyFrames

.NET Framework Equivalent

System.Windows.Media.Animation.ColorAnimationUsingKeyFrames

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
IXRStoryboard