Skip to main content

DocumentPanel.ActivateCommand Property

Gets the command that activates the current DocumentPanel.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

Declaration

public ICommand ActivateCommand { get; }

Property Value

Type Description
ICommand

The command that activates the current DocumentPanel.

Remarks

The following example shows how to bind a button’s command to an ActivateCommand of a DocumentPanel.

<dxb:BarButtonItem Content="Activate" Command="{Binding ActivateCommand, ElementName=documentPanel}" />

Additionally, the DockControllerCommand class provides commands for managing Dock Items, such as Activate, Close, Dock, Float, Hide, Restore, CloseActive. The following example shows how to specify a command for a button so that it makes an active dock item floating.

<dxb:BarButtonItem Content="Float" Command="dxdo:DockControllerCommand.Float" CommandTarget="{Binding ElementName=dockLayoutManager1}" CommandParameter="{Binding ElementName=dockLayoutManager1, Path=ActiveDockItem }"/>

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

See Also