ColorAnimation.EasingFunction Property

Gets or sets the easing function applied to this animation.

Namespace:  System.Windows.Media.Animation
Assembly:  System.Windows (in System.Windows.dll)

public IEasingFunction EasingFunction { get; set; }

XAML Values


A single object element for an easing function type that derives from EasingFunctionBase, for example, <PowerEase/>.

Property Value

Type: System.Windows.Media.Animation.IEasingFunction
The easing function applied to this animation.

Dependency property identifier field: EasingFunctionProperty

Easing functions allow you to create a variety of specialized animation effects including bouncing, spring oscillations, and various magnitude acceleration and deceleration animations. These functions were designed primarily for 'movement animations' versus color animation (see Easing Function Gallery for examples), however, you might find a scenario for applying an easing function to your ColorAnimation. For example, you could use a PowerEase easing function to create a color animation that animates through colors rapidly at first but slows down.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions