NavigationView.ContentOverlay Property


Gets or sets a UI element that is shown at the top of the control, below the pane if PaneDisplayMode is Top.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.NavigationView.ContentOverlay (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

 property UIElement ^ ContentOverlay { UIElement ^ get(); void set(UIElement ^ value); };
UIElement ContentOverlay();

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

Property Value


The element that is shown at the top of the control.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)


The ContentOverlay property takes a single UIElement. This is typically a layout panel, such as Grid or StackPanel, that contains additional elements.

Applies to