Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DockControllerBase.Dock(BaseLayoutItem) Method

Docks the specified item. This method is in effect for newly created, floating, auto-hidden or closed(hidden) items.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

#Declaration

public bool Dock(
    BaseLayoutItem item
)

#Parameters

Name Type Description
item BaseLayoutItem

A BaseLayoutItem object to be docked.

#Returns

Type Description
Boolean

true, if the item has been successfully docked; otherwise, false.

#Remarks

The Dock method is not in effect if the specified item is currently docked. If the specified item was docked at a certain position, and was then hidden or made floating, the Dock method restores the item at its previous dock position. Otherwise, the item is docked at the bottom of the DockLayoutManager container.

See Also