Summary
Never before has a button been so flexible! In XAML-based UI frameworks, Button and most of the other content controls can contain absolutely anything—but they can directly contain only one item. This chapter highlighted what makes each type of Button unique, and examined one non-Button content control: ToolTip.
Viewbox, introduced in Chapter 6, and a handy element called Border (which supports customizable rounded corners with its CornerRadius property) can often be mistaken for content controls because they directly contain only one item. They are not, however. They derive directly from FrameworkElement, and therefore lack many features given to Control. Instead of a Content property, they have a Child property.
Now, with the tour ...
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