Share via


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>

属性值

应用栏按钮的图形内容。

适用于

另请参阅