O'Reilly logo

WPF in Action with Visual Studio 2008 by Maxx Daymon, Arlen Feldman

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

Chapter 7. Events

This chapter covers:

  • Bubble-up events
  • Tunnel-down events
  • Handling events even when they’ve already been handled
  • Class-level events
  • Clever ways to annoy your users

If you’ve used both MFC and Windows Forms, you’ll know that the event model in Windows Forms was a major improvement over the message-map model used by MFC. Controls in Windows Forms exposed events that could be subscribed to by code that cares, and that code was called when appropriate. The classic example is a user clicking a button, resulting in the appropriate handler being called. Many other events work in the same way.

Classic Windows Forms events did have some issues. The most problematic was that the code that cared about the event either needed to have ...

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