Прочетете на английски

Споделяне чрез


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).

C#
public UIElement ContentOverlay { get; set; }
C#
[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; }

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

Продукт Версии
WinUI 2 2.0, 2.1, 2.2, 2.3, 2.4, 2.5-prerelease, 2.5, 2.6-prerelease, 2.6, 2.7-prerelease, 2.7, 2.8-prerelease, 2.8