NavigationView.PaneCustomContent Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a UI element that is shown in the NavigationView pane.
Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.NavigationView.PaneCustomContent (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
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
Property Value
The element that is shown in the NavigationView pane.
Windows requirements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v7.0)
|
Remarks
The PaneCustomContent property takes a single UIElement. This is typically a layout panel, such as Grid or StackPanel, that contains additional elements.