Chapter 19. Transition effects

 

This chapter covers:

  • Building a cleaner application
  • Using the Application object
  • Lots of spiffy transitions
  • Getting as close to a James-Bond-like life as we’re ever likely to

There’s an old, not very good, joke about a man talking to a genie. “Genie,” he says, “make me a sandwich.”

“Poof,” says the genie, “you’re a sandwich.”

As we said, it’s not a very good joke. Sometimes, though, working with WPF is like that. Unless you get your incantations exactly right, you suddenly find yourself looking out from between two slices of Wonder Bread, wondering what happened.

This chapter is about two things. First, it’s about adding some cool transition effects, such as fades and wipes, into your applications. Second, it’s about balancing XAML and code, and putting together applications in a way that makes it possible for you to have a shot at getting things to work, while being as understandable and maintainable as possible.

19.1. Building the World Browser application

19.2. Adding a simple transition

19.3. Building a generic transition control

19.4. Adding some interesting transition effects

19.5. Summary