MenuFlyoutItem.Icon 屬性

定義

取得或設定功能表飛出視窗專案的圖形內容。

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>

屬性值

功能表飛出視窗專案的圖形內容。

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於