AppBarButton.Icon Property

Definition

Gets or sets the graphic content of the app bar button.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.AppBarButton.Icon.

public:
 property IconElement ^ Icon { IconElement ^ get(); void set(IconElement ^ value); };
IconElement Icon();

void Icon(IconElement value);
public IconElement Icon { get; set; }
var iconElement = appBarButton.icon;
appBarButton.icon = iconElement;
Public Property Icon As IconElement
<AppBarButton Icon="symbolName" .../>
- or -
<AppBarButton>
    <AppBarButton.Icon>
        iconElement
    </AppBarButton.Icon>
</AppBarButton>

Property Value

IconElement

The graphic content of the app bar button.

Applies to

See also