次の方法で共有


IXRPointAnimation (Windows Embedded CE 6.0)

1/6/2010

This class animates the value of an XRPoint between two target values using linear interpolation over a duration specified by the inherited method IXRTimeline::SetDuration.

Syntax

class IXRPointAnimation : public IXRTimeline

Methods

Method Description

IXRPointAnimation::GetBy

Retrieves the total difference between the starting and ending values of the animation.

IXRPointAnimation::GetFrom

Retrieves the starting value of this animation.

IXRPointAnimation::GetTo

Retrieves the ending value of this animation.

IXRPointAnimation::SetBy

Sets the total difference between the starting and ending values of the animation.

IXRPointAnimation::SetFrom

Sets the starting value of this animation.

IXRPointAnimation::SetTo

Sets the ending value of this animation.

Remarks

An animation updates the value of a property over a period of time. Animation effects can be subtle, such as moving an IXRShape object several pixels left or right, or dramatic, such as enlarging an object to 200 times its original size while spinning it and changing its color. To create an animation, you associate an animation with a property value that belongs to an object. To identify a target property to animate, use the inherited IXRDependencyObject::SetAttachedProperty method.

The IXRPointAnimation class creates a transition between two target x-y coordinates, or points. To set its target values, use its SetFrom, SetTo, and SetBy methods. The following table shows how these methods can be used together or separately to determine an animation's target values.

Method(s) used by the developer Resulting behavior

SetFrom

The animation progresses from the value specified in SetFrom to the animated property's base value or to a previous animation's output value, depending on how the previous animation is configured.

SetFrom and SetTo

The animation progresses from the value specified in SetFrom to the value specified in SetTo.

SetFrom and SetBy

The animation progresses from the value specified in SetFrom to the sum of values specified in SetFrom and SetBy.

SetTo

The animation progresses from the animated property's base value or a previous animation's output value to the value specified in SetTo.

SetBy

The animation progresses from the animated property's base value or from a previous animation's output value to the sum of that value and the value specified in SetBy.

If you use both the SetTo and SetBy methods, the value specified in SetTo takes precedence and the SetBy property is ignored.

To use other interpolation methods or to define an animation that progresses through more than two target values use the IXRPointAnimationUsingKeyFrames object.

You can also define a point animation 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.

Note

Silverlight does not support methods for accessing or setting the EasingFunction property, a property that is supported by Silverlight 2.

Inheritance Hierarchy

IXRDependencyObject

    IXRTimeline

        IXRPointAnimation

.NET Framework Equivalent

System.Windows.Media.Animation.PointAnimation

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

Other Resources