Skip to Main Content
Fluent Visual Basic®
book

Fluent Visual Basic®

by Rebecca M. Riordan
October 2011
Intermediate to advanced content levelIntermediate to advanced
880 pages
14h 44m
English
Sams
Content preview from Fluent Visual Basic®

18. WPF Interactions

In the same way that WPF extends (adds functionality to the basic .NET property mechanism, it also extends the .NET event pattern that we explored in Chapter 14 by introducing ROUTED EVENTS.

A standard .NET event can be handled by any object that registers a handler for it. WPF routed events can behave that way, too, but they can also travel up and down the logical tree, letting the event be handled by the most appropriate object in the logical tree. That’s particularly important in WPF because of the way objects are nested. When you create a Button, for example, you want to set an event handler on the Button itself, not on every one of its visual children.

After we’ve explored the WPF event model, we’ll examine WPF commands ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Visual Basic® 2012 How to Program, Sixth Edition

Visual Basic® 2012 How to Program, Sixth Edition

Paul Deitel, Abbey Deitel
Microsoft® Visual Basic® 2010 Developer’s Handbook

Microsoft® Visual Basic® 2010 Developer’s Handbook

Klaus Löffelmann and Sarika Calla Purohit

Publisher Resources

ISBN: 9780132900577Purchase book