IDockController.CreateCommand<T>(BaseLayoutItem) Method
In This Article
Creates the specified dock command for the specified item/panel.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v24.2.dll
NuGet Package: DevExpress.Wpf.Docking
#Declaration
T CreateCommand<T>(
BaseLayoutItem item
)
where T : DockControllerCommand, new()
#Parameters
Name | Type | Description |
---|---|---|
item | Base |
A Base |
#Type Parameters
Name |
---|
T |
#Returns
Type | Description |
---|---|
T | The created command. |
#Remarks
You can bind the following DockLayoutManager dock commands to a button:
Command Name | Description | Related Method |
---|---|---|
Activate |
Activates a panel. | Dock |
Close |
Closes (hides) a panel. | Dock |
Dock |
Docks a panel to the root panel. | Dock |
Float |
Makes the panel floating. | Dock |
Hide |
Enables the auto-hide feature for the panel. | Dock |
Restore |
Restores a panel from the closed state and makes it visible. | Dock |
The following code sample binds the ActivateCommand to the button click:
buttonUndo.Command = DockLayoutManager1.DockController.CreateCommand
<DevExpress.Xpf.Docking.ActivateCommand>(paneMessages);
See Also