Version

ContentPane Class

Represents a single pane in a XamDockManager. The System.Windows.Controls.ContentControl.Content should be the control/element that should be hosted in the dockable window and the System.Windows.Controls.HeaderedContentControl.Header is used to display in the caption for the pane.
Syntax
'Declaration
 
Public Class ContentPane 
   Inherits System.Windows.Controls.HeaderedContentControl
Example
This example demonstrates creating a ContentPane and initializing some of the common properties such as the Header, TabHeader and Image.

Imports Infragistics.Windows.DockManager

Private Sub InitializeDmWithCP(ByVal dockManager As XamDockManager)
    Dim split As New SplitPane()

    Dim cp As New ContentPane()
    cp.Header = "Caption Text"
    ' The TabHeader can be excluded and will default 
    ' to the value of the Header. 
    cp.TabHeader = "Tab Text"
    cp.IsPinned = False

    ' the following assumes you have a resource image in the root 
    ' of the application with the name panePic.bmp 
    Dim uri As New Uri("pack://application:,,,/panePic.bmp")
    cp.Image = New BitmapImage(uri)

    split.Panes.Add(cp)
    dockManager.Panes.Add(split)
End Sub
using Infragistics.Windows.DockManager;

private void InitializeDmWithCP(XamDockManager dockManager)
{
	SplitPane split = new SplitPane();

	ContentPane cp = new ContentPane();
	cp.Header = "Caption Text";
	// The TabHeader can be excluded and will default
	// to the value of the Header.
	cp.TabHeader = "Tab Text";
	cp.IsPinned = false;

	// the following assumes you have a resource image in the root
	// of the application with the name panePic.bmp
	Uri uri = new Uri("pack://application:,,,/panePic.bmp");
	cp.Image = new BitmapImage(uri);

	split.Panes.Add(cp);
	dockManager.Panes.Add(split);
}
<igDock:XamDockManager>
    
<igDock:XamDockManager.Panes>
        
<igDock:SplitPane>
            
<!-- The TabHeader can be excluded and will default
                 to the value of the Header. 
-->
            
<igDock:ContentPane Header="Caption Text"
                                
TabHeader="Tab Text"
                                
IsPinned="False"
                                
Image="panePic.bmp" />
        
</igDock:SplitPane>
    
</igDock:XamDockManager.Panes>
</igDock:XamDockManager>
Requirements

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

See Also