Share via


ColorAnimation.EasingFunction Property

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

Gets or sets the easing function applied to this animation.

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

Syntax

'Declaration
Public Property EasingFunction As IEasingFunction
public IEasingFunction EasingFunction { get; set; }
<ColorAnimation>
  <ColorAnimation.EasingFunction>
    singleEasingFunction
  </ColorAnimation.EasingFunction>
</ColorAnimation>

XAML Values

  • singleEasingFunction
    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.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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