Skip to main content

DockLayoutManager.FloatGroups Property

Provides access to floating groups of panels. Allows you to create floating panels in XAML.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v23.2.dll

NuGet Package: DevExpress.Wpf.Docking

Declaration

public FloatGroupCollection FloatGroups { get; }

Property Value

Type Description
FloatGroupCollection

A FloatGroupCollection object which is a collection of floating groups.

Remarks

In XAML, you can create a floating panel as follows:

  1. Add a FloatGroup object to the FloatGroups collection.
  2. Add a panel(s) to the created FloatGroup.
  3. Set the size for the created FloatGroup object via the BaseLayoutItem.FloatSize property.

To specify the position for the FloatGroup, use the FloatGroup.FloatLocation property.

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

Example

The following example shows how to create floating panels. To create a floating panel:

1) A FloatGroup is added to the DockLayoutManager.FloatGroups collection

2) A LayoutPanel(s) is added to the created FloatGroup.

View Example

<dxdo:DockLayoutManager.FloatGroups>
    <!--Create a FloatGroup containing two panels-->
    <dxdo:FloatGroup FloatSize="400,200" FloatLocation="20,30">
        <dxdo:LayoutPanel x:Name="paneProperties" Caption="Properties">
            <RichTextBox />
        </dxdo:LayoutPanel>
        <dxdo:LayoutPanel x:Name="paneMessages" Caption="Messages">
            <RichTextBox />
        </dxdo:LayoutPanel>
    </dxdo:FloatGroup>
    <!--Create a FloatGroup containing one panel-->
    <dxdo:FloatGroup FloatSize="200,150" FloatLocation="100,100">
        <dxdo:LayoutPanel x:Name="paneFindResults" Caption="Find Results">
            <RichTextBox />
        </dxdo:LayoutPanel>
    </dxdo:FloatGroup>
</dxdo:DockLayoutManager.FloatGroups>

The following code snippets (auto-collected from DevExpress Examples) contain references to the FloatGroups property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also