AppBarToggleButton.Icon Property

Definition

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

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

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

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

Property Value

IconElement

The graphic content of the app bar toggle button.

Applies to

See also