Back to Devexpress

FloatGroupCollection Class

wpf-devexpress-dot-xpf-dot-docking-641de7aa.md

latest3.4 KB
Original Source

FloatGroupCollection Class

Represents a collection of FloatGroup objects.

Namespace : DevExpress.Xpf.Docking

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

NuGet Package : DevExpress.Wpf.Docking

Declaration

csharp
public class FloatGroupCollection :
    BaseLockableCollection<FloatGroup>,
    IDisposable
vb
Public Class FloatGroupCollection
    Inherits BaseLockableCollection(Of FloatGroup)
    Implements IDisposable

The following members return FloatGroupCollection objects:

Remarks

The DockLayoutManager.FloatGroups property represents a collection of FloatGroup objects. Each floating group represents a kind of floating window, displaying panels.

The DockLayoutManager.FloatingMode property specifies how floating groups are moved (within the current application window or throughout the desktop).

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

xaml
<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>

Inheritance

Object Collection<FloatGroup> ObservableCollection<FloatGroup> DevExpress.Xpf.Docking.BaseLockableCollection<FloatGroup> FloatGroupCollection

See Also

FloatGroupCollection Members

FloatGroup

DevExpress.Xpf.Docking Namespace