Skip to main content
A newer version of this page is available. .

DocumentGroup.ClosePageButtonShowMode Property

Gets or sets whether Close buttons are displayed in individual tab pages and the tab container’s header. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v18.2.dll

Declaration

public ClosePageButtonShowMode ClosePageButtonShowMode { get; set; }

Property Value

Type Description
ClosePageButtonShowMode

A ClosePageButtonShowMode value that specifies the display mode for Close buttons.

Available values:

Name Description
Default

The same as the ClosePageButtonShowMode.InTabControlHeader option.

InTabControlHeader

The Close button is displayed in the tab container’s header

InAllTabPageHeaders

Close buttons are displayed in all pages. The Close button in the container’s header is hidden.

InActiveTabPageHeader

A Close button is displayed in the active page. The Close button in the container’s header is hidden.

InAllTabPagesAndTabControlHeader

Close buttons are displayed in all pages and in the container’s header.

InActiveTabPageAndTabControlHeader

Close buttons are displayed in the tab container’s header, and within the active page.

NoWhere

Close buttons are not displayed.

Remarks

Close buttons can be displayed in the tab container’s header and individual tab pages. Use the ClosePageButtonShowMode to specify the visibility of Close buttons. If this property is set to a value that allows a Close button to be displayed in the tab container’s header or tab page, this button can still be hidden via the BaseLayoutItem.ShowCloseButton property.

Clicking a Close button hides the corresponding panel, moving it to the DockLayoutManager.ClosedPanels collection.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ClosePageButtonShowMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also