wpf-devexpress-dot-xpf-dot-docking-dot-docklayoutmanager-d82e48ce.md
Gets the controller that provides methods to perform docking operations on panels.
Namespace : DevExpress.Xpf.Docking
Assembly : DevExpress.Xpf.Docking.v25.2.dll
NuGet Package : DevExpress.Wpf.Docking
public IDockController DockController { get; }
Public ReadOnly Property DockController As IDockController
| Type | Description |
|---|---|
| IDockController |
A DockController object that provides methods to perform docking operations on panels.
|
The DockController object provides methods to dock or hide panels, make them floating, etc.
This example shows how to dock a panel in code using the methods provided by the DockLayoutManager.DockController object. In the Button1_Click event handler, a panel is docked to another panel forming a split container (two panels are displayed side by side). In the Button2_Click event handler, a panel is docked to another panel forming a tabbed group.
Private Sub Button1_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
' Dock the Properties panel at the bottom of the Output panel.
dockManager1.DockController.Dock(paneProperties, paneOutput, DockType.Bottom)
End Sub
Private Sub Button2_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
' Dock the Properties panel to the Output panel, creating a tab container.
dockManager1.DockController.Dock(paneProperties, paneOutput, DockType.Fill)
End Sub
private void Button1_Click(object sender, RoutedEventArgs e) {
// Dock the Properties panel at the bottom of the Output panel.
dockManager1.DockController.Dock(paneProperties, paneOutput, DockType.Bottom);
}
private void Button2_Click(object sender, RoutedEventArgs e) {
// Dock the Properties panel to the Output panel, creating a tab container.
dockManager1.DockController.Dock(paneProperties, paneOutput, DockType.Fill);
}
See Also