NavigationView.PaneCustomContent 屬性

定義

取得或設定顯示在 NavigationView 窗格中的 UI 元素。

適用于 UWP 的對等 WinUI 2 APIMicrosoft.UI.Xaml.Controls.NavigationView.PaneCustomContent (Windows 應用程式 SDK中適用于 WinUI,請參閱Windows 應用程式 SDK命名空間) 。

public:
 property UIElement ^ PaneCustomContent { UIElement ^ get(); void set(UIElement ^ value); };
UIElement PaneCustomContent();

void PaneCustomContent(UIElement value);
public UIElement PaneCustomContent { get; set; }
var uIElement = navigationView.paneCustomContent;
navigationView.paneCustomContent = uIElement;
Public Property PaneCustomContent As UIElement

屬性值

顯示在 NavigationView 窗格中的專案。

Windows 需求

裝置系列
Windows 10, version 1809 (已於 10.0.17763.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v7.0 引進)

備註

PaneCustomContent 屬性會採用單一 UIElement。 這通常是包含其他元素的版面配置面板,例如 Grid 或 StackPanel。

適用於