Easing functions
When declaring animations with WPF, we are able to utilize a powerful capability that helps us to define more specialized animations. While we normally provide a start and end value for our animations and let WPF interpolate the intermediate values, there is a way that we can affect this interpolation process.
There are a number of mathematical functions that provide complex animation paths and are known as easing functions. For example, these can accurately replicate the movement of a spring, or the bounce of a ball.
We can simply declare the appropriate easing function within the EasingFunction
property of the animation. Each easing function extends the EasingFunctionBase
class and has its own specific properties. For example, the BounceEase
element provides Bounces
and Bounciness
properties, while the ElasticEase
class declare the Oscillations
and Springiness
properties.
All easing functions inherit the EasingMode
property from the base class. This property is of the enumeration...