Easing Functions
You’ve seen examples of the linear interpolation used with the three main custom animation classes, and the possible spline interpolation that can be used with three of the custom keyframe animation classes. All of the custom animation classes except the discrete-only ObjectAnimationUsingKeyFrames class enable an easing function to be plugged in to customize the interpolation. DoubleAnimation, ColorAnimation, and PointAnimation directly define an EasingFunction property, and the others can work with EasingXXXKeyFrame objects that define the same property.
EasingFunction can be set to a class deriving from EasingFunctionBase that controls the rate of acceleration and deceleration in arbitrarily complex ways. Eleven such objects ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access