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

BaseDockOptions.ShowCloseButton Property

Gets or sets whether the close button is displayed within a dock panel’s caption.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v18.2.dll

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ShowCloseButton { get; set; }

Property Value

Type Default Description
Boolean **true**

true to show the close button within the caption of a dock panel; otherwise false.

Property Paths

You can access this nested property as listed below:

Show 17 property paths
Library Object Type Path to ShowCloseButton
WinForms Controls SnapDockManager
.DockingOptions.ShowCloseButton
FieldListDockPanel
.Options.ShowCloseButton
ReportExplorerDockPanel
.Options.ShowCloseButton
DockManager
.DockingOptions.ShowCloseButton
DockPanel
.Options.ShowCloseButton
PanAndZoomDockPanel
.Options.ShowCloseButton
Reporting DesignDockPanel
.Options.ShowCloseButton
ErrorListDockPanel
.Options.ShowCloseButton
FieldListDockPanel
.Options.ShowCloseButton
GroupAndSortDockPanel
.Options.ShowCloseButton
PropertyGridDockPanel
.Options.ShowCloseButton
ReportExplorerDockPanel
.Options.ShowCloseButton
ReportGalleryDockPanel
.Options.ShowCloseButton
ToolBoxDockPanel
.Options.ShowCloseButton
TreeViewDesignDockPanel
.Options.ShowCloseButton
TypedDesignDockPanel
.Options.ShowCloseButton
XRDesignDockManager
.DockingOptions.ShowCloseButton

Remarks

Set the ShowCloseButton property to false to prevent a dock panel from being closed by an end-user using the “Close” button.

For more information on caption buttons, see the Header Buttons document.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowCloseButton 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