NavigationViewItemPresenter.Icon 属性

定义

获取或设置 NavigationView 项中的图标。

适用于 UWP 的等效 WinUI 2 APIMicrosoft.UI.Xaml.Controls.Primitives.NavigationViewItemPresenter.Icon (Windows 应用 SDK,请参阅Windows 应用 SDK命名空间) 。

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

void Icon(IconElement value);
public IconElement Icon { get; set; }
var iconElement = navigationViewItemPresenter.icon;
navigationViewItemPresenter.icon = iconElement;
Public Property Icon As IconElement

属性值

NavigationView 项的图标。

适用于