Chapter 9. Graphics and Animation

In this chapter we will cover the following:

  • Creating a custom shape
  • Applying transforms on elements
  • Manipulating a bitmap programmatically
  • Creating adorners
  • Creating property-based animations
  • Creating path-based animations
  • Creating custom animations
  • Adding animation easing to animations
  • Using custom effects with pixel shaders

Introduction

WPF has a very impressive graphic stack. That's one of the obvious selling points of the technology, as it's very visual and immediately recognizable. WPF's graphic capabilities range from simple 2D to arbitrarily complex 3D, with the typical integration we come to expect from WPF; everything can be interacted with anything – a 3D scene can be animating inside a button and that button ...

Get Windows Presentation Foundation 4.5 Cookbook 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.