Imports Infragistics.Windows.DockManager
Private Sub InitializeDmWithBehavior(ByVal dockManager As XamDockManager)
' the CloseBehavior and PinBehavior properties
' allow you to emulate the VS behavior where you
' may control whether the close and pin buttons
' of a pane in a tab group affect all the panes
' or just the pane that is displayed
dockManager.CloseBehavior = PaneActionBehavior.ActivePane
dockManager.PinBehavior = PaneActionBehavior.AllPanes
' create some panes to allow the behavior to be demonstrated
Dim split As New SplitPane()
Dim tab As New TabGroupPane()
Dim cp As New ContentPane()
cp.Header = "One"
tab.Items.Add(cp)
cp = New ContentPane()
cp.Header = "Two"
tab.Items.Add(cp)
cp = New ContentPane()
cp.Header = "Three"
tab.Items.Add(cp)
split.Panes.Add(tab)
dockManager.Panes.Add(split)
End Sub