Compartilhar via


IXRDoubleKeyFrame (Compact 2013)

3/28/2014

This class defines an animation segment with its own target float value and interpolation method for an IXRDoubleAnimationUsingKeyFrames object.

Syntax

class IXRDoubleKeyFrame : public IXRDependencyObject

Inheritance Hierarchy

IXRDependencyObject

    IXRDoubleKeyFrame

        IXRDiscreteDoubleKeyFrame

        IXRLinearDoubleKeyFrame

        IXRSplineDoubleKeyFrame

Methods

Method

Description

IXRDoubleKeyFrame::GetKeyTime

Retrieves the time at which the target float value for this key frame is reached.

IXRDoubleKeyFrame::GetValue

Retrieves the target float value of this key frame.

IXRDoubleKeyFrame::SetKeyTime

Sets the time at which the target float value for this key frame is reached.

IXRDoubleKeyFrame::SetValue

Sets the target float value of 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

IXRDoubleKeyFrame is a class that defines key frames for three techniques of key frame animation: IXRDiscreteDoubleKeyFrame, IXRLinearDoubleKeyFrame, IXRSplineDoubleKeyFrame. To animate a float value by using key frames, you define an IXRDoubleAnimationUsingKeyFrames animation and populate its key-frames collection with one or more objects of type IXRDiscreteDoubleKeyFrame, IXRLinearDoubleKeyFrame, or IXRSplineDoubleKeyFrame.

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

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