EasingFunction Property
Collapse the table of content
Expand the table of content

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.

Namespace:  System.Windows.Media.Animation
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

'Declaration
Public Property EasingFunction As IEasingFunction
<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.

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft