Share via


IXRColorAnimation::SetTo (Windows Embedded CE 6.0)

1/6/2010

This method sets the ending value of the animation.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetTo(
    COLORREF To
) = 0;

Parameters

  • To
    [in] COLORREF value that indicates the ending value of the animation.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

You can use the RGB macro or the RGBA macro to create a color value to supply to this method. For more information about identifying the correct BYTE values to use in the RGB or RGBA macro for red, green, and blue, see this Web site.

For guidance on creating RGB colors, color complements, and themes, see the EasyRGB.

The following table summarizes how these methods can be used together or separately to determine the target values of an animation.

Method(s) used by the developer Resulting behavior

SetFrom

The animation progresses from the value specified in SetFrom to the base value of the property being animated.

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 the 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 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 animatation that progresses through more than two target values use the IXRColorAnimationUsingKeyFrames object.

.NET Framework Equivalent

System.Windows.Media.Animation.ColorAnimation.To

Requirements

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

See Also

Reference

IXRColorAnimation
IXRColorAnimation::GetTo