Back to Devexpress

DockControllerCommand.Close Property

wpf-devexpress-dot-xpf-dot-docking-dot-dockcontrollercommand-c01cf74c.md

latest1.7 KB
Original Source

DockControllerCommand.Close Property

Closes a specific dock item.

Namespace : DevExpress.Xpf.Docking

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

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public static RoutedCommand Close { get; }
vb
Public Shared ReadOnly Property Close As RoutedCommand

Property Value

TypeDescription
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:

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

Corresponding Method: DockControllerBase.Close.

See Also

DockControllerCommand Class

DockControllerCommand Members

DevExpress.Xpf.Docking Namespace