O'Reilly logo

101 Windows by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix D. Animation Easing Reference

Windows Phone ships with 11 easing functions that can easily be applied to an animation or a keyframe. Each of them supports three different modes with a property called EasingMode. It can be set to EaseIn, EaseOut (the default value), or EaseInOut. Here’s how you can apply one of the easing function objects—QuadraticEase—to a basic DoubleAnimation:

<DoubleAnimation    Storyboard.TargetProperty="(Canvas.Top)" From="200"    To="0" Duration="0:0:3"> <DoubleAnimation.EasingFunction>   <QuadraticEase/> </DoubleAnimation.EasingFunction> </DoubleAnimation>

And here is how you change EasingMode to something ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required