Condividi tramite


ColorKeyFrame

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Provides a base class for specific animation key frame techniques that define an animation segment with a Color target value. Derived classes each provide a different key frame interpolation method for a Color value that is provided for a ColorAnimationUsingKeyFrames animation.

Syntax Notes

See Derived Objects for syntax information.

Managed Equivalent

ColorKeyFrame

Remarks

ColorKeyFrame is an abstract object that defines Color value type key frames for three different techniques of key frame animation: DiscreteColorKeyFrame, LinearColorKeyFrame, and SplineColorKeyFrame. To animate a Color with key frames, you define a ColorAnimationUsingKeyFrames animation, and populate its KeyFrames property with one or more DiscreteColorKeyFrame, LinearColorKeyFrame, or SplineColorKeyFrame elements that define the key frames.

For more information, see the following ColorKeyFrame derived objects: DiscreteColorKeyFrame, LinearColorKeyFrame, and SplineColorKeyFrame.

For more information on basic concepts, see Key-Frame Animations. Note that the Key-Frame Animations topic is written primarily for users of the managed API, and may not have code examples or specific information that address the JavaScript API scenarios.

See Also

Reference