[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
 [Expand]What's Installed
 [Expand].NET Core 3 Support
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Collapse]Layout Management
   [Collapse]Dock Windows
    [Expand]Getting Started
    [Collapse]Dock Items
      Layout Groups
      Layout (Dock) Panels
      Tabbed Groups
      Document Groups and Panels
      Float Groups
      Auto-Hide Groups
      MDI Mode
    [Expand]Layout Items
    [Expand]Runtime Features
   [Expand]Tile and Layout
   [Expand]Tab Control
    Book Control
    Workspace Manager
  [Expand]Windows Modern UI
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Float Groups

Expanded Overview

A Float Group (a FloatGroup object) is a kind of floating window displaying a dock panel, groups of dock panels or a DocumentPanel in the floating state. The following image shows a Float Group containing two layout panels:

When a panel/DocumentPanel is about to become floating, a Float Group is automatically created and the panel is added to this group. Docking a floating panel destroys the Float Group.

Float groups can be moved within the boundaries of a window or a desktop. This feature is controlled by the DockLayoutManager.FloatingMode option.

Floating panels display their image and caption in the Windows Taskbar preview. Use the FloatGroup.WindowTaskbarTitle and FloatGroup.WindowTaskbarIcon attached properties to specify a different caption and image.

Expanded Child Items

The following objects can be children of a Float Group:

You can add multiple child objects to a Float Group. In this instance, the Float Group's children will be arranged side by side.

To create a floating panel in XAML, you need to:

  1. Add a FloatGroup object to the DockLayoutManager.FloatGroups collection. This collection contains all Float Groups, so it allows you to access all floating panels.
  2. Add a dock object(s) (for instance, a LayoutPanel object(s)) to the created FloatGroup.
  3. Set the size for the created FloatGroup object, via the BaseLayoutItem.FloatSize property.
  4. Set the position for the created FloatGroup object, via the FloatGroup.FloatLocation property.

In code, a panel can be made floating via the DockController.Float method of the DockLayoutManager.DockController object.

Expanded Dock Operations

To prevent a panel from being made floating, use the BaseLayoutItem.AllowFloat option. You can create a floating panel and then prevent it from being docked via the BaseLayoutItem.AllowDock option.

To make a panel floating in code, use the DockController.Float method of the DockLayoutManager.DockController object.

The DockLayoutManager.DockItemStartDocking, DockLayoutManager.DockItemDocking and DockLayoutManager.DockItemEndDocking events allow dock operations to be dynamically controlled.

Expanded Example

Expanded See Also

Is this topic helpful?​​​​​​​