Dela via


MenuFlyoutItem.Icon Property

Definition

Gets or sets the graphic content of the menu flyout item.

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

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

Property Value

The graphic content of the menu flyout item.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to