Version

ParentDocked Property

Returns the parent DockableGroupPane that contains the pane when it is docked.
Syntax
'Declaration
 
Public ReadOnly Property ParentDocked As DockableGroupPane
public DockableGroupPane ParentDocked {get;}
Remarks

Even when a pane is floating in a window, it maintains a relationship with the pane to which it was previously docked. It will return to the dock area to which it was previously parented when it is re-docked (through code or by double-clicking on the pane's title bar.) While docked, the pane also maintains its relationship with the window in which it was previously floating.

Example
The following example demonstates how to use the Reposition method of a DockablePaneBase to reposition multiple panes that may already be positioned in other groups.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinDock

Private Sub btnReposition_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReposition.Click

    ' The Float, Dock and ToggleState methods are the main
    ' mechanism for repositioning panes. However, the reposition
    ' method may also be used to reposition panes. For example,
    ' to float all panes in a single dock area:

    ' Suspend any sizing changes
    Me.ultraDockManager1.SuspendLayout()

    ' Create a floating dock area
    Dim dockArea As DockAreaPane = Me.ultraDockManager1.DockAreas.Add(DockedLocation.Floating)

    Dim controlPane As DockableControlPane

    ' Iterate all the control panes and reposition them
    ' to the 
    For Each controlPane In Me.ultraDockManager1.ControlPanes
        If Not controlPane.ParentFloating Is Nothing Then
            'this pane had a floating parent at one point
            'but this will now be changed since we are repositioning
            'it to a new floating dock area
            Debug.WriteLine(String.Format("Control Pane '{0}' previously had a floating parent - '{1}'.", _
                controlPane, controlPane.ParentFloating))
        End If

        If Not controlPane.ParentDocked Is Nothing Then
            Debug.WriteLine(String.Format("Control Pane '{0}' has a docked parent ('{1}') that it will be repositioned to if you double click the pane.", _
                controlPane, controlPane.ParentDocked))
        End If

        'reposition it to the new floating dock area
        controlPane.Reposition(dockArea)
    Next

    ' Initialize some properties on the new dock area
    ' in this case, we'll put them into a sliding group
    'where the sliding buttons are vertically positioned
    dockArea.ChildPaneStyle = ChildPaneStyle.SlidingGroup
    dockArea.GroupSettings.SlidingGroupOrientation = DefaultableOrientation.Vertical

    ' Initialize the size and caption for the dock area
    dockArea.Size = New Size(300, 150)
    dockArea.Text = "Floating Controls"

    dockArea.FloatingLocation = New Point(150, 50)

    ' Resume any pending size changes
    Me.ultraDockManager1.ResumeLayout()

End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinDock;
using System.Diagnostics;

private void btnReposition_Click(object sender, System.EventArgs e)
{

	// The Float, Dock and ToggleState methods are the main
	// mechanism for repositioning panes. However, the reposition
	// method may also be used to reposition panes. For example,
	// to float all panes in a single dock area:

	// Suspend any sizing changes
	this.ultraDockManager1.SuspendLayout();

	// Create a floating dock area
	DockAreaPane dockArea = this.ultraDockManager1.DockAreas.Add(DockedLocation.Floating);

	// Iterate all the control panes and reposition them
	// to the 
	foreach(DockableControlPane controlPane in this.ultraDockManager1.ControlPanes)
	{
		if (controlPane.ParentFloating != null)
		{
			// This pane had a floating parent at one point
			// but this will now be changed since we are repositioning
			// it to a new floating dock area
			Debug.WriteLine(String.Format("Control Pane '{0}' previously had a floating parent - '{1}'.", 
				controlPane, controlPane.ParentFloating));
		}

		if (controlPane.ParentDocked != null)
		{
			Debug.WriteLine(String.Format("Control Pane '{0}' has a docked parent ('{1}') that it will be repositioned to if you double click the pane.", 
				controlPane, controlPane.ParentDocked));
		}

		// Reposition it to the new floating dock area
		controlPane.Reposition(dockArea);
	}

	// Initialize some properties on the new dock area
	// in this case, we'll put them into a sliding group
	// where the sliding buttons are vertically positioned
	dockArea.ChildPaneStyle = ChildPaneStyle.SlidingGroup;
	dockArea.GroupSettings.SlidingGroupOrientation = DefaultableOrientation.Vertical;

	// Initialize the size and caption for the dock area
	dockArea.Size = new Size(300, 150);
	dockArea.Text = "Floating Controls";

	dockArea.FloatingLocation = new Point(150, 50);

	// Resume any pending size changes
	this.ultraDockManager1.ResumeLayout();

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, 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