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

IDockController.Dock(BaseLayoutItem, BaseLayoutItem, DockType) Method

Docks the first item to the second item with the specified dock type.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

#Declaration

bool Dock(
    BaseLayoutItem item,
    BaseLayoutItem target,
    DockType type
)

#Parameters

Name Type Description
item BaseLayoutItem

The item to be docked.

target BaseLayoutItem

The item to which the first item is docked.

type DockType

A DockType value that specifies how the first item is docked.

#Returns

Type Description
Boolean

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

#Remarks

The type parameter specifies how the first item is docked to the target item. If the parameter is DockType.None, the item is not docked and the Dock method returns false.

Set the type parameter to DockType.Fill and target to a LayoutPanel or TabbedGroup to combine items into a tab group.

See Also