Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DocumentPanel.ActivateCommand Property

Gets the command that activates the current DocumentPanel.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v24.2.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