共用方式為


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 專案的圖示。

適用於