Back to Devexpress

DockControllerBase.CloseAllButThis(BaseLayoutItem) Method

wpf-devexpress-dot-xpf-dot-docking-dot-dockcontrollerbase-dot-closeallbutthis-x28-devexpress-dot-xpf-dot-docking-dot-baselayoutitem-x29.md

latest2.4 KB
Original Source

DockControllerBase.CloseAllButThis(BaseLayoutItem) Method

Closes all items except the specified one within this item’s container.

Namespace : DevExpress.Xpf.Docking

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

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public bool CloseAllButThis(
    BaseLayoutItem item
)
vb
Public Function CloseAllButThis(
    item As BaseLayoutItem
) As Boolean

Parameters

NameTypeDescription
itemBaseLayoutItem

The only BaseLayoutItem element to remain opened within its parent container.

|

Returns

TypeDescription
Boolean

true, if all but the specified items were successfully closed; otherwise, false.

|

Remarks

The method closes all child items within the item’s container except the specified item object. Depending on the BaseLayoutItem.ClosingBehavior of the items closed (and the DockLayoutManager.ClosingBehavior of the parent dock layout manager), they are either moved to the closed panel collection, or removed.

To close a specific item, use the DockControllerBase.Close method instead. Neither the CloseAllButThis or Close methods close the items whose BaseLayoutItem.AllowClose property is set to false.

Implements

CloseAllButThis(BaseLayoutItem)

See Also

DockControllerBase Class

DockControllerBase Members

DevExpress.Xpf.Docking Namespace