BaseLayoutItem.ShowCloseButton Property
Allows you to hide the Close (‘x’) button for the current item. This property is only supported for LayoutPanel, DocumentPanel and DocumentGroup objects. This is a dependency property.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, if the Close (‘x’) button is visible; otherwise, false. |
Remarks
A close (‘x’) button is displayed in the following cases:
the current item is a LayoutPanel or a DocumentGroup
The ShowCloseButton property allows you to hide the Close button for these objects.
the current item represents a DocumentPanel within a DocumentGroup
DocumentPanel objects display Close buttons, as specified by the DocumentGroup.ClosePageButtonShowMode property. You can hide the Close button for a specific DocumentPanel via the ShowCloseButton property.
Clicking a Close button hides the corresponding panel. For more information, see DockLayoutManager.ClosingBehavior.