Version

AllowDockingRight Property

Returns/sets a boolean indicating whether the pane may be docked within the XamDockManager or within a floating window.
Syntax
'Declaration
 
Public Property AllowDockingRight As Nullable(Of Boolean)
public Nullable<bool> AllowDockingRight {get; set;}
Example
This example uses the AllowDocking properties to control the edges of the XamDockManager to which a ContentPane may be docked.

Imports Infragistics.Windows.DockManager

Private Sub InitializeDmAllowDock(ByVal dockManager As XamDockManager)
    ' AllowDocking determines the default value for whether 
    ' a ContentPane can be put into a Dockable state by the 
    ' end user. The AllowDocking(Left|Right|Top|Bottom|Floating) 
    ' can be used to override this value for specific edges. 
    ' Note: These properties refer to edges of the dockmanager. 
    ' 
    Dim cp1 As New ContentPane()
    cp1.Header = "OnlyLeftOrRight"
    cp1.AllowDocking = False
    cp1.AllowDockingLeft = True
    cp1.AllowDockingRight = True

    ' the following is equivalent to the version above 
    Dim cp2 As New ContentPane()
    cp2.Header = "AlsoLeftOrRight"
    cp2.AllowDockingTop = False
    cp2.AllowDockingBottom = False

    Dim split As New SplitPane()
    XamDockManager.SetInitialLocation(split, InitialPaneLocation.DockedLeft)
    split.Panes.Add(cp1)
    split.Panes.Add(cp2)
    dockManager.Panes.Add(split)
End Sub
using Infragistics.Windows.DockManager;

private void InitializeDmAllowDock(XamDockManager dockManager)
{
	// AllowDocking determines the default value for whether 
	// a ContentPane can be put into a Dockable state by the 
	// end user. The AllowDocking(Left|Right|Top|Bottom|Floating) 
	// can be used to override this value for specific edges. 
	// Note: These properties refer to edges of the dockmanager.
	//
	ContentPane cp1 = new ContentPane();
	cp1.Header = "OnlyLeftOrRight";
	cp1.AllowDocking = false;
	cp1.AllowDockingLeft = true;
	cp1.AllowDockingRight = true;

	// the following is equivalent to the version above
	ContentPane cp2 = new ContentPane();
	cp2.Header = "AlsoLeftOrRight";
	cp2.AllowDockingTop = false;
	cp2.AllowDockingBottom = false;

	SplitPane split = new SplitPane();
	XamDockManager.SetInitialLocation(split, InitialPaneLocation.DockedLeft);
	split.Panes.Add(cp1);
	split.Panes.Add(cp2);
	dockManager.Panes.Add(split);
}
<igDock:XamDockManager>
    
<igDock:XamDockManager.Panes>
        
<igDock:SplitPane igDock:XamDockManager.InitialLocation="DockedLeft">
            
<!-- AllowDocking determines the default value for whether 
                 a ContentPane can be put into a Dockable state by the 
                 end user. The AllowDocking(Left|Right|Top|Bottom|Floating) 
                 can be used to override this value for specific edges. 
                 Note: These properties refer to edges of the dockmanager.
-->
            
<igDock:ContentPane Header="OnlyLeftOrRight"
                                
AllowDocking="False"
                                
AllowDockingLeft="True"
                                
AllowDockingRight="True" />
            
<!-- the following is equivalent to the version above -->
            
<igDock:ContentPane Header="AlsoLeftOrRight"
                                
AllowDockingTop="False"
                                
AllowDockingBottom="False" />
        
</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