Skip to main content
All docs
V25.1
  • DockControllerCommand.Close Property

    Closes a specific dock item.

    Namespace: DevExpress.Xpf.Docking

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

    NuGet Package: DevExpress.Wpf.Docking

    Declaration

    public static RoutedCommand Close { get; }

    Property Value

    Type Description
    RoutedCommand

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

    Remarks

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

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

    Corresponding Method: DockControllerBase.Close.

    See Also