Share via


NavigationView.ContentOverlay Property

Definition

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

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

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

void ContentOverlay(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 ContentOverlay();

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

Property Value

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

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

Remarks

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

Applies to