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.v20.2.dll
NuGet Package: DevExpress.Win.Navigation
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:
Library | Object Type | Path to ShowCloseButton |
---|---|---|
WinForms Controls | SnapDockManager |
|
FieldListDockPanel |
|
|
ReportExplorerDockPanel |
|
|
DockManager |
|
|
DockPanel |
|
|
PanAndZoomDockPanel |
|
|
Reporting | DesignDockPanel |
|
ErrorListDockPanel |
|
|
FieldListDockPanel |
|
|
GroupAndSortDockPanel |
|
|
PropertyGridDockPanel |
|
|
ReportExplorerDockPanel |
|
|
ReportGalleryDockPanel |
|
|
ToolBoxDockPanel |
|
|
TreeViewDesignDockPanel |
|
|
TypedDesignDockPanel |
|
|
XRDesignDockManager |
|
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.
Related GitHub Examples
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.