O'Reilly logo

XAML Unleashed 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

Independent Versus Dependent Animations

Speaking of animating an element’s Width, it would be natural to try to repurpose the previous DoubleAnimation to animate the Button’s Width instead of its Opacity. After all, Width is a dependency property, and it’s of type double. So this should work, right? Well, yes, but not by default for Windows Store and universal apps.

Animations that operate on an element’s Opacity, RenderTransform, or Projection can run on the GPU (in other words, are hardware accelerated) because the underlying visual surface being manipulated doesn’t need to change. So can animations on the Canvas.Left and Canvas.Top attached properties, which is effectively the same as animating a TranslateTransform. These are examples of independent ...

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