Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this chapter we’ll explore the ways in which WPF objects can communicate and interact through the WPF property and event systems, and the special command classes that let you centralize application behavior.
A POCO event allows interested parties to register their interest in an event by creating a handler for it. POCO events are called DIRECT EVENTS because the event is sent directly to the handlers, and that’s the end of it. In WPF, events can be handled this way, but they can also bubble up from the object that raised the event to all its ancestors in the logical hierarchy, or tunnel down from the root element to the raising object. They can even move in both directions via PreviewEvent/Event pairs. At any level, the event can be handled or passed on to the next level.