AppBarButton
AppBarButton is a Button that matches the expected style of bottom app bar buttons. (See the “App Bars” section for examples.) Instead of a rectangle containing a single piece of arbitrary content, AppBarButtons are rendered as circles with built-in support for an icon and a label. AppBarButton derives from Button and adds three properties of its own:
→ Label—A simple string placed underneath the circle
→ Icon—The icon in the circle, represented by an interesting IconElement object that most of this section is dedicated to
→ IsCompact—A Boolean that can be set to false to hide the Label and reduce the AppBarButton’s padding
Figure 9.3 shows how the following four AppBarButtons get rendered, which is identical for phone and PC:
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