Version

AllowDockingInTabGroupProperty Field

Identifies the AllowDockingInTabGroup dependency property
Syntax
'Declaration
 
Public Shared ReadOnly AllowDockingInTabGroupProperty As DependencyProperty
public static readonly DependencyProperty AllowDockingInTabGroupProperty
Example
This example uses the AllowDockingInTabGroup and AllowInDocumentHost properties to control the types of operations that the end user may perform on a ContentPane.

Imports Infragistics.Windows.DockManager

Private Sub InitializeDmTabs(ByVal dockManager As XamDockManager)
    ' The AllowInDocumentHost is used to control 
    ' whether the end user may move the pane into 
    ' the DocumentContentHost associated with the 
    ' containing dockmanager. For this pane you 
    ' cannot right click and choose Document nor 
    ' can you drag it into the DocumentContentHost. 
    ' 
    Dim cpNeverDoc As New ContentPane()
    cpNeverDoc.Header = "Never a Document"
    cpNeverDoc.AllowInDocumentHost = False

    ' AllowDockingInTabGroup is used to control 
    ' whether the end user can put the pane into 
    ' a dockable tab group (or create a tabgroup 
    ' using the pane). Note, it does not affect 
    ' the pane when in the document content host. 
    ' For this pane, you cannot drag it to another 
    ' docked pane to create a tab group and cannot 
    ' drag another pane into this such that it 
    ' creates a tab group. 
    ' 
    Dim cpNeverTab As New ContentPane()
    cpNeverTab.Header = "Never in Docked Tab"
    cpNeverTab.AllowDockingInTabGroup = False

    Dim cpAll As New ContentPane()
    cpAll.Header = "Everything Allowed"

    Dim split As New SplitPane()
    split.SplitterOrientation = Orientation.Horizontal
    split.Panes.Add(cpNeverDoc)
    split.Panes.Add(cpNeverTab)
    split.Panes.Add(cpAll)
    dockManager.Panes.Add(split)

    dockManager.Content = New DocumentContentHost()
End Sub
using Infragistics.Windows.DockManager;

private void InitializeDmTabs(XamDockManager dockManager)
{
	// The AllowInDocumentHost is used to control 
	// whether the end user may move the pane into 
	// the DocumentContentHost associated with the 
	// containing dockmanager. For this pane you 
	// cannot right click and choose Document nor 
	// can you drag it into the DocumentContentHost.
	//
	ContentPane cpNeverDoc = new ContentPane();
	cpNeverDoc.Header = "Never a Document";
	cpNeverDoc.AllowInDocumentHost = false;

	// AllowDockingInTabGroup is used to control 
	// whether the end user can put the pane into 
	// a dockable tab group (or create a tabgroup 
	// using the pane). Note, it does not affect 
	// the pane when in the document content host. 
	// For this pane, you cannot drag it to another 
	// docked pane to create a tab group and cannot 
	// drag another pane into this such that it
	// creates a tab group.
	//
	ContentPane cpNeverTab = new ContentPane();
	cpNeverTab.Header = "Never in Docked Tab";
	cpNeverTab.AllowDockingInTabGroup = false;

	ContentPane cpAll = new ContentPane();
	cpAll.Header = "Everything Allowed";

	SplitPane split = new SplitPane();
	split.SplitterOrientation = Orientation.Horizontal;
	split.Panes.Add(cpNeverDoc);
	split.Panes.Add(cpNeverTab);
	split.Panes.Add(cpAll);
	dockManager.Panes.Add(split);

	dockManager.Content = new DocumentContentHost();
}
<igDock:XamDockManager>
    
<igDock:XamDockManager.Panes>
        
<igDock:SplitPane SplitterOrientation="Horizontal">
            
<!-- The AllowInDocumentHost is used to control 
                 whether the end user may move the pane into 
                 the DocumentContentHost associated with the 
                 containing dockmanager. For this pane you 
                 cannot right click and choose Document nor 
                 can you drag it into the DocumentContentHost. 
-->
            
<igDock:ContentPane Header="Never a Document"
                                
AllowInDocumentHost="False" />
            
            
<!-- AllowDockingInTabGroup is used to control 
                 whether the end user can put the pane into 
                 a dockable tab group (or create a tabgroup 
                 using the pane). Note, it does not affect 
                 the pane when in the document content host. 
                 For this pane, you cannot drag it to another 
                 docked pane to create a tab group and cannot 
                 drag another pane into this such that it
                 creates a tab group. 
-->
            
<igDock:ContentPane Header="Never in Docked Tab"
                                
AllowDockingInTabGroup="False" />
            
            
<igDock:ContentPane Header="Everything Allowed" />
        
</igDock:SplitPane>
    
</igDock:XamDockManager.Panes>
    
<igDock:DocumentContentHost />
</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