IXRDiscretePointKeyFrame (Compact 2013)

3/28/2014

This class defines an animation segment that uses discrete frames to animate from the x-y point values of the previous key frame to its own x-y point values.

Syntax

class IXRDiscretePointKeyFrame : public IXRPointKeyFrame

Inheritance Hierarchy

IXRDependencyObject

    IXRPointKeyFrame

        IXRDiscretePointKeyFrame

Methods

IXRDiscretePointKeyFrame defines no new methods. It inherits its methods from IXRPointKeyFrame.

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

This class animates x-y point values along a set of key frames by using an IXRColorKeyFrameCollection that belongs to an IXRColorAnimationUsingKeyFrames object.

A key frame defines a segment of the IXRColorAnimationUsingKeyFrames object that it belongs to. Each key frame has target x-y point values 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 values of the previous key frame to its own target values. It starts when the previous key frame ends, and it ends when its own key-time is reached.

Discrete key frames like IXRDiscreteColorKeyFrame do not interpolate between x-y point values, instead jumping suddenly to the new target value when the key-time of the key frame is reached.

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

You can also define a discrete point key-frame 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 DiscretePointKeyFrame Class on MSDN.

.NET Framework Equivalent

System.Windows.Media.Animation.DiscretePointKeyFrame

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Animation Storyboards
Classes for Visual Appearance