Skip to Content
Programming Windows®, Six Edition
book

Programming Windows®, Six Edition

by Charles Petzold
January 2013
Intermediate to advanced content levelIntermediate to advanced
1136 pages
34h 9m
English
Microsoft Press
Content preview from Programming Windows®, Six Edition

Chapter 5. Control Interaction

Early on in this book I made a distinction between classes that derive from FrameworkElement and those that derive from Control. I’ve tended to refer to FrameworkElement derivatives (such as TextBlock and Image) as “elements” to preserve this distinction, but a deeper explication is now required.

The title of this chapter might suggest that elements are for presentation and controls are for interaction, but that’s not necessarily so. It is the UIElement class that defines all the user-input events for touch, mouse, stylus, and keyboard, which means that elements as well as controls can interact with the user in very sophisticated ways.

Nor are elements deficient in layout, styling, or data binding capabilities. It’s ...

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

Programming Windows®, Fifth Edition

Programming Windows®, Fifth Edition

Charles Petzold
Programming C# 10

Programming C# 10

Ian Griffiths

Publisher Resources

ISBN: 9780735671751Purchase book