Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinDock
Private Sub btnUnpinAll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUnpinAll.Click
' There are several options for unpinning DockableControlPane
' instances
' You can unpin an individual DockableControlPane
Me.ultraDockManager1.PaneFromKey("treeSolutions").Unpin()
' You can unpin all the descendants/children of a particular
' group pane. Note, since a DockAreaPane is a specialized
' DockableGroupPane, you can call the method on a
' dock area. The dock area/group must be docked though
If Me.ultraDockManager1.DockAreas(0).DockedState = DockedState.Docked Then
Me.ultraDockManager1.DockAreas(0).Unpin()
End If
' Or you can unpin all docked control panes
Me.ultraDockManager1.UnpinAll()
End Sub