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:

Get Universal Windows® Apps with XAML and C# 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.