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 Easing
XXXKeyFrame
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 ...
Get XAML Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.