NavigationView.PaneCustomContent 屬性

定義

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

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

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

void PaneCustomContent(UIElement value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=false)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=false)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=false)]
UIElement PaneCustomContent();

void PaneCustomContent(UIElement value);
public UIElement PaneCustomContent { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=false)]
public UIElement PaneCustomContent { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=false)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=false)] set; }
Public Property PaneCustomContent As UIElement

屬性值

NavigationView 窗格中顯示的 元素。

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

備註

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

適用於