ColorAnimation.EasingFunction Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the easing function applied to this animation.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<ColorAnimation> <ColorAnimation.EasingFunction> singleEasingFunction </ColorAnimation.EasingFunction> </ColorAnimation>
XAML Values
Property Value
Type: System.Windows.Media.Animation.IEasingFunctionThe 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.