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.

public:
 property UIElement ^ ContentOverlay { UIElement ^ get(); void set(UIElement ^ value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=false)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=false)]
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 { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=false)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=false)] 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; }
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.

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