Back to Devexpress

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

wpf-devexpress-dot-xpf-dot-docking-dot-layoutcontroller-dot-createcommand-1-x28-devexpress-dot-xpf-dot-docking-dot-baselayoutitem-x29.md

latest4.1 KB
Original Source

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

Creates the specified layout command for the specified items.

Namespace : DevExpress.Xpf.Docking

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

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public T CreateCommand<T>(
    BaseLayoutItem[] items
)
    where T : LayoutControllerCommand, new()
vb
Public Function CreateCommand(Of T As {LayoutControllerCommand, New})(
    items As BaseLayoutItem()
) As T

Parameters

NameTypeDescription
itemsBaseLayoutItem[]

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

|

Type Parameters

Name
T

Returns

TypeDescription
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

LayoutController Class

LayoutController Members

DevExpress.Xpf.Docking Namespace