Skip to main content

BaseLayoutItem.ShowCloseButton Property

Allows you to hide the current item’s Close button. This property is only supported for LayoutPanel and DocumentPanel objects. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v22.1.dll

NuGet Package: DevExpress.Wpf.Docking


public bool ShowCloseButton { get; set; }

Property Value

Type Description

true, if the Close (‘x’) button is visible; otherwise, false.


The following example hides the Close button for the MainWindow.xaml.cs DocumentPanel:

      <dxdo:DocumentGroup MDIStyle="Tabbed" ClosePageButtonShowMode="InAllTabPageHeaders">
        <dxdo:DocumentPanel Caption="MainWindow.xaml.cs" ShowCloseButton="False">
        <dxdo:DocumentPanel Caption="MainWindow.xaml" >
        <dxdo:DocumentPanel Caption="App.xaml"/>
        <dxdo:DocumentPanel Caption="App.cs"/>

Dock Layout Manager - ShowCloseButton property

You can use the DockLayoutManager.ClosingBehavior property to specify how a panel is closed.

The DocumentGroup.ClosePageButtonShowMode property specifies the Close button position.

See Also