Partager via


IXRDiscreteObjectKeyFrame (Windows Embedded CE 6.0)

1/6/2010

This class uses discrete values to animate from the IXRDependencyObject target value of the previous key frame to its own target value.

Syntax

lass IXRDiscreteObjectKeyFrame : public IXRObjectKeyFrame

Methods

This class defines no new methods. It inherits its methods from IXRObjectKeyFrame.

Remarks

This class animates an IXRDependencyObject-derived object along a set of key frames using an IXRObjectKeyFrameCollection together with an IXRObjectAnimationUsingKeyFrames animation.

A key frame defines a segment of the IXRObjectAnimationUsingKeyFrames object that it belongs to. Each key frame has a target value, set by the inherited method IXRObjectKeyFrame::SetValue, and a key-time, set by the inherited method IXRObjectKeyFrame::SetKeyTime. The key-time specifies the time at which the target value of this key frame should be 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.

Discrete key frames such as IXRDiscreteObjectKeyFrame do not interpolate between values, instead jumping suddenly to the new target value when the key-time is reached.

You can also define a discrete double 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 element in the source XAML for your application, see this Microsoft Web site.

Inheritance Hierarchy

IXRDependencyObject

    IXRObjectKeyFrame

        IXRDiscreteObjectKeyFrame

.NET Framework Equivalent

System.Windows.Media.Animation.DiscreteObjectKeyFrame

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