'Declaration Public Overloads Sub Float( _ ByVal maintainPreviousState As Boolean _ )
public void Float( bool maintainPreviousState )
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.
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); }
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