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.v20.1.dll

Declaration

public FloatGroupCollection FloatGroups { get; }
Public ReadOnly Property FloatGroups As FloatGroupCollection

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.

Examples

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.

<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>
See Also