Button
Buttons are probably the most familiar and essential user interface elements. The Button control has already made several appearances in this book.
Although everyone intuitively knows what a button is, its precise definition (at least in XAML-based UI frameworks) might not be obvious. A button is a content control that can be clicked. Note that clicking is a logically distinct concept from tapping or other mouse events that are exposed on elements. Only classes deriving from ButtonBase have an event named Click.
So what’s special about Click? The Click event can not only be raised by a finger press, left mouse button click, or pen tap, but it can be raised from keyboard input as well. As has always been the case with Windows buttons, ...
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