Skip to main content

DockLayoutManager.ClosingBehavior Property

Gets or sets the way that specifies how a panel is closed.

Namespace: DevExpress.Xpf.Docking

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

#Declaration

public ClosingBehavior ClosingBehavior { get; set; }

#Property Value

Type Description
ClosingBehavior

A ClosingBehavior value that specifies how a panel is closed.

#Remarks

A panel can be closed in code via the DockController.Close method, and by an end-user, by clicking the panel's close button. The ClosingBehavior property affects the panel closing behavior in both cases.

Closing a panel removes it from view. If the DockLayoutManager.ClosingBehavior property is set to Default or ClosingBehavior.HideToClosedPanelsCollection, the closed panel is hidden, and internally, moved to the DockLayoutManager.ClosedPanels collection. If the DockLayoutManager.ClosingBehavior property is set to ClosingBehavior.ImmediatelyRemove, the panel is hidden, and no reference to this panel is kept by the Dock Layout Manager.

See Also