Skip to content

Latest commit

 

History

History
37 lines (20 loc) · 1.38 KB

tabview_closebuttonoverlaymode.md

File metadata and controls

37 lines (20 loc) · 1.38 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.TabView.CloseButtonOverlayMode
winrt property

Microsoft.UI.Xaml.Controls.TabView.CloseButtonOverlayMode

-description

Gets or sets a value that indicates the behavior of the close button within tabs.

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

-property-value

A value of the enumeration that describes the behavior of the close button within tabs. The default is Auto.

-remarks

Selected TabViewItems that are closable always show their close button regardless of the value of the TabViewCloseButtonOverlayMode property. The TabViewCloseButtonOverlayMode only effects the behavior of the unselected TabViewItems.

If the CloseButtonOverlayMode is set to Always, unselected tabs always show the close button if they are closable.

If the CloseButtonOverlayMode is set to OnPointerOver, unselected tabs show the close button when the tab is closable and the user has their pointer over the tab.

In WinUI 2.4, setting the CloseButtonOverlayMode to Auto results in the same behavior as Always.

-see-also

-examples