wpf-devexpress-dot-xpf-dot-docking-dot-layoutcontroller-dot-createcommand-1-x28-devexpress-dot-xpf-dot-docking-dot-baselayoutitem-x29.md
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
public T CreateCommand<T>(
BaseLayoutItem[] items
)
where T : LayoutControllerCommand, new()
Public Function CreateCommand(Of T As {LayoutControllerCommand, New})(
items As BaseLayoutItem()
) As T
| Name | Type | Description |
|---|---|---|
| items | BaseLayoutItem[] |
An array of BaseLayoutItem objects with which the created command is associated.
|
| Name |
|---|
| T |
| Type | Description |
|---|---|
| T |
The created command.
|
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