Imports Infragistics.Windows.DockManager Private Sub CreateTabGroupPane(ByVal dockManager As XamDockManager) Dim dockedSplit As New SplitPane() dockedSplit.SplitterOrientation = Orientation.Horizontal XamDockManager.SetInitialLocation(dockedSplit, InitialPaneLocation.DockedRight) ' A TabGroupPane can be hosted within a SplitPane Dim tgpDocked As New TabGroupPane() Dim cpDockedTab1 As New ContentPane() cpDockedTab1.Header = "Solution Explorer" cpDockedTab1.Content = New TreeView() tgpDocked.Items.Add(cpDockedTab1) Dim cpDockedTab2 As New ContentPane() cpDockedTab2.Header = "Class View" cpDockedTab2.Content = New TreeView() tgpDocked.Items.Add(cpDockedTab2) dockedSplit.Panes.Add(tgpDocked) Dim cpRightBottom As New ContentPane() cpRightBottom.Header = "Properties" cpRightBottom.Content = New ListView() dockedSplit.Panes.Add(cpRightBottom) dockManager.Panes.Add(dockedSplit) Dim dch As New DocumentContentHost() Dim dchSplit As New SplitPane() ' TabGroupPane and SplitPane are the only element ' types allowed within a SplitPane in the ' DocumentContentHost Dim tgpDch1 As New TabGroupPane() Dim tgpDchTab1 As New ContentPane() tgpDchTab1.Header = "File 1" tgpDchTab1.Content = New RichTextBox() tgpDch1.Items.Add(tgpDchTab1) dchSplit.Panes.Add(tgpDch1) Dim tgpDch2 As New TabGroupPane() Dim tgpDchTab2 As New ContentPane() tgpDchTab2.Header = "File 2" tgpDchTab2.Content = New RichTextBox() tgpDch2.Items.Add(tgpDchTab2) dchSplit.Panes.Add(tgpDch2) dch.Panes.Add(dchSplit) dockManager.Content = dch End Sub
using Infragistics.Windows.DockManager; private void CreateTabGroupPane(XamDockManager dockManager) { SplitPane dockedSplit = new SplitPane(); dockedSplit.SplitterOrientation = Orientation.Horizontal; XamDockManager.SetInitialLocation(dockedSplit, InitialPaneLocation.DockedRight); // A TabGroupPane can be hosted within a SplitPane TabGroupPane tgpDocked = new TabGroupPane(); ContentPane cpDockedTab1 = new ContentPane(); cpDockedTab1.Header = "Solution Explorer"; cpDockedTab1.Content = new TreeView(); tgpDocked.Items.Add(cpDockedTab1); ContentPane cpDockedTab2 = new ContentPane(); cpDockedTab2.Header = "Class View"; cpDockedTab2.Content = new TreeView(); tgpDocked.Items.Add(cpDockedTab2); dockedSplit.Panes.Add(tgpDocked); ContentPane cpRightBottom = new ContentPane(); cpRightBottom.Header = "Properties"; cpRightBottom.Content = new ListView(); dockedSplit.Panes.Add(cpRightBottom); dockManager.Panes.Add(dockedSplit); DocumentContentHost dch = new DocumentContentHost(); SplitPane dchSplit = new SplitPane(); // TabGroupPane and SplitPane are the only element // types allowed within a SplitPane in the // DocumentContentHost TabGroupPane tgpDch1 = new TabGroupPane(); ContentPane tgpDchTab1 = new ContentPane(); tgpDchTab1.Header = "File 1"; tgpDchTab1.Content = new RichTextBox(); tgpDch1.Items.Add(tgpDchTab1); dchSplit.Panes.Add(tgpDch1); TabGroupPane tgpDch2 = new TabGroupPane(); ContentPane tgpDchTab2 = new ContentPane(); tgpDchTab2.Header = "File 2"; tgpDchTab2.Content = new RichTextBox(); tgpDch2.Items.Add(tgpDchTab2); dchSplit.Panes.Add(tgpDch2); dch.Panes.Add(dchSplit); dockManager.Content = dch; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2