次の方法で共有


IXRPointAnimation::SetFrom (Windows Embedded CE 6.0)

1/6/2010

This method sets the starting value of this animation.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetFrom(
    XRPoint* pFrom
) = 0;

Parameters

  • pFrom
    [in] XRPoint structure that specifies the x-coordinate and y-coordinate of the animation starting value.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

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 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 animate between more than two target values use the IXRPointAnimationUsingKeyFrames object.

.NET Framework Equivalent

System.Windows.Media.Animation.PointAnimation.From

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRPointAnimation
IXRPointAnimation::GetFrom