Back to Devexpress

DockController Class

wpf-devexpress-dot-xpf-dot-docking-7a7d6695.md

latest3.1 KB
Original Source

DockController Class

Provides methods to perform docking operations on panels.

Namespace : DevExpress.Xpf.Docking

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

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public class DockController :
    DockControllerBase,
    IDockController2010,
    IDockController,
    IActiveItemOwner,
    IDisposable
vb
Public Class DockController
    Inherits DockControllerBase
    Implements IDockController2010,
               IDockController,
               IActiveItemOwner,
               IDisposable

Remarks

Use the DockLayoutManager.DockController object to access a DockController object, which provides methods to perform docking operations on panels. These methods allow you to dock a panel, restore it from the closed state, make it floating, etc.

Example

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.

View Example

vb
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
csharp
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);
}

Implements

IDockController

Inheritance

Object DockControllerBase DockController

See Also

DockController Members

DevExpress.Xpf.Docking Namespace