6.1. The Control Class
WPF windows are filled with elements, but only some of these elements are controls.
In the world of WPF, a control is generally described as a user-interactive element—that is, an element that can receive focus and accept input from the keyboard or mouse. Obvious examples include text boxes and buttons. However, the distinction is sometimes a bit blurry. A tooltip is considered to be a control because it appears and disappears depending on the user's mouse movements. A label is considered to be a control because of its support for mnemonics (shortcut keys that transfer the focus to related controls).
All controls derive from the System.Windows.Control class, which adds a bit of basic infrastructure:
The ability to set ...
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.
Read now
Unlock full access