Skip to main content

DockControllerCommand.Dock Property

Docks a floating or an auto-hidden dock item.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

Declaration

public static RoutedCommand Dock { get; }

Property Value

Type Description
RoutedCommand

A command that implements the ICommand, and is routed through the element tree.

Remarks

The following code sample docks the active DockLayoutManager’s item:

 <Button Command="dxdo:DockControllerCommand.Dock" 
         CommandTarget="{Binding ElementName=DockLayoutManager1}"
         CommandParameter="{Binding ElementName=DockLayoutManager1, Path=ActiveDockItem }"/>Close</Button>

Corresponding Method: DockControllerBase.Dock

See Also