Share via


NavigationViewItemPresenter.Icon 屬性

定義

取得或設定 NavigationView 專案中的圖示。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

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

void Icon(IconElement value);
public IconElement Icon { get; set; }
Public Property Icon As IconElement

屬性值

NavigationView 專案的圖示。

適用於