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 ...

Get XAML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.