Skip to main content

LayoutController.CreateCommand<T>(BaseLayoutItem[]) Method

Creates the specified layout command for the specified items.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

Declaration

public T CreateCommand<T>(
    BaseLayoutItem[] items
)
    where T : LayoutControllerCommand, new()

Parameters

Name Type Description
items BaseLayoutItem[]

An array of BaseLayoutItem objects with which the created command is associated.

Type Parameters

Name
T

Returns

Type Description
T

The created command.

Remarks

There exist several commands provided by the DXDocking library supporting the layout functionality. You can bind commands to buttons. As a result, clicking the button will invoke the corresponding layout functionality. The following are the available layout commands, declared in the DevExpress.Xpf.Docking namespace.

Note

All these commands are enabled only in Customization Mode.

For more information on commands, see the Commanding Overview topic in MSDN.

See Also