Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinDock
Private Sub btnHideAll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnHideAll.Click
' There are several options for hiding/closing panes
' You can close a particular control pane. Setting the closed
' property has the same affect in this case.
' Me.ultraDockManager1.PaneFromControl(Me.UltraDayView1).Closed = True
Me.ultraDockManager1.ControlPanes("treeSolutions").Close()
' You can close a particular group. Calling the parameterless
' overload is equivalent to calling the following:
' Me.ultraDockManager1.DockAreas(0).Close(false)
' which indicates that only the specified pane's 'Closed' property
' should be set. If true is specified, the 'Closed' property
' of all the children/descendants of the pane is also set
' to true.
Me.ultraDockManager1.DockAreas(0).Close()
' The following goes through and sets the 'Closed' property
'of all panes to false
Me.ultraDockManager1.HideAll()
End Sub