Back to Devexpress

BaseLayoutItem.ClosingBehavior Property

wpf-devexpress-dot-xpf-dot-docking-dot-baselayoutitem-406de005.md

latest3.2 KB
Original Source

BaseLayoutItem.ClosingBehavior Property

Gets or sets the way the current item acts if closed.

Namespace : DevExpress.Xpf.Docking

Assembly : DevExpress.Xpf.Docking.v25.2.dll

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public ClosingBehavior ClosingBehavior { get; set; }
vb
Public Property ClosingBehavior As ClosingBehavior

Property Value

TypeDescription
ClosingBehavior

A ClosingBehavior enumeration value.

|

Available values:

NameDescription
Default

When applied to a DockLayoutManager via the DockLayoutManager.ClosingBehavior property, acts as the ClosingBehavior.HideToClosedPanelsCollection option.

When applied to a BaseLayoutItem via the BaseLayoutItem.ClosingBehavior property, gets a ClosingBehavior enumeration value of its parent DockLayoutManager .

| | HideToClosedPanelsCollection |

When a panel is closed, it’s hidden and moved to the DockLayoutManager.ClosedPanels collection. The panel can be accessed via the Closed Panels bar (see DockLayoutManager.ClosedPanelsBarVisibility).

| | ImmediatelyRemove |

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.

See Also

ClosingBehavior

Close(BaseLayoutItem)

BaseLayoutItem Class

BaseLayoutItem Members

DevExpress.Xpf.Docking Namespace