Version

Float(Boolean) Method

Places the pane and all of its child panes into a floating window.
Syntax
'Declaration
 
Public Overloads Sub Float( _
   ByVal maintainPreviousState As Boolean _
) 
public void Float( 
   bool maintainPreviousState
)

Parameters

maintainPreviousState
True if the pane(s) should be repositioned to its previous floating parent and return to its previous floating location (if any.) False if a new window should be created for the pane to float in. Note that if the pane had never been floated, this parameter has no effect, as a new window will always be created for the pane.
Remarks

You can specify whehter the pane should return to its previous floating location (if any) or if it should be placed in a new floating window.

Example
The following example demonstrates how to use the Float method of a DockableGroupPane to position its contents in a new floating DockAreaPane.

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

Private Sub btnFloatGroup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFloatGroup.Click

    ' Get the group that we will float
    Dim group As DockableGroupPane = Me.ultraDockManager1.DockAreas(0)

    ' If its already floating, there's nothing to do
    If group.DockedState = DockedState.Floating Then Return

    ' Make sure there's something to float
    If Not group.IsVisible Then Return

    ' Float the contents of the group. passing true would mean
    ' that the control pane descendants should be displayed in the
    ' floating dock area that previously contained then if they
    ' had been previously floated. by passing false we are telling
    ' the dock manager that the previous state should be ignore and
    ' that a new dockarea should be created to contain these
    ' control panes
    group.Float(False)

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

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

	// Get the group that we will float
	DockableGroupPane group = this.ultraDockManager1.DockAreas[0];

	// If its already floating, there//s nothing to do
	if (group.DockedState == DockedState.Floating)
		return;

	// Make sure there's something to float
	if (!group.IsVisible)
		return;

	// Float the contents of the group. passing true would mean
	// that the control pane descendants should be displayed in the
	// floating dock area that previously contained then if they
	// had been previously floated. by passing false we are telling
	// the dock manager that the previous state should be ignore and
	// that a new dockarea should be created to contain these
	// control panes
	group.Float(false);

}
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