IXRDoubleAnimationUsingKeyFrames (Compact 2013)

3/28/2014

This class represents an animation that, along a set of key frames, animates a float value over a specified duration.

Syntax

class IXRDoubleAnimationUsingKeyFrames : public IXRTimeline

Inheritance Hierarchy

IXRDependencyObject

    IXRTimeline

        IXRDoubleAnimationUsingKeyFrames

Methods

Method

Description

IXRDoubleAnimationUsingKeyFrames::GetKeyFrames

Retrieves the collection of IXRDoubleKeyFrame objects that define this animation.

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

IXRDoubleAnimationUsingKeyFrames stores a collection of IXRDoubleKeyFrame objects that together define the key frames for the animation. The IXRDoubleAnimationUsingKeyFrames::GetKeyFrames method retrieves the collection of target values for the key-frame animation. 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 times.

There are three kinds of IXRDoubleKeyFrame derived classes, one for each supported interpolation method: IXRLinearDoubleKeyFrame, IXRDiscreteDoubleKeyFrame, and IXRSplineDoubleKeyFrame.

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

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

You can also define a double animation that uses key frames 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 element in the source XAML for your application, see the DoubleAnimationUsingKeyFrames Class on MSDN.

Note

The name of this XAML element is generated by the Blend for Visual Studio IDE and includes "double" in order to maintain parity with the name of its equivalent XAML element in the source XAML markup. However, in XAML for Windows Embedded this object represents a float instead of a double.

.NET Framework Equivalent

System.Windows.Media.Animation.DoubleAnimationUsingKeyFrames

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Animation Storyboards
Classes for Visual Appearance
IXRStoryboard