BaseLayoutItem.ClosingBehavior Property
Gets or sets the way the current item acts if closed.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v24.2.dll
NuGet Package: DevExpress.Wpf.Docking
#Declaration
public ClosingBehavior ClosingBehavior { get; set; }
#Property Value
Type | Description |
---|---|
Closing |
A Closing |
Available values:
Name | Description |
---|---|
Default | When applied to a Dock When applied to a Base |
Hide |
When a panel is closed, it’s hidden and moved to the Dock |
Immediately |
When a panel is closed, it’s hidden. No reference to the closed panel is kept. |
#Remarks
When you close Dock Items they can either be immediately removed, or hidden and placed to the DockLayoutManager.ClosedPanels collection. You can choose a desired option via the ClosingBehavior and DockLayoutManager.ClosingBehavior properties. The ClosingBehavior property has a higher priority than the DockLayoutManager.ClosingBehavior property. If ClosingBehavior property is set to Default, the closing behavior is determined by the DockLayoutManager.ClosingBehavior property.