wpf-devexpress-dot-xpf-dot-docking-dot-docklayoutmanager-5acb80f2.md
Provides access to floating groups of panels. Allows you to create floating panels in XAML.
Namespace : DevExpress.Xpf.Docking
Assembly : DevExpress.Xpf.Docking.v25.2.dll
NuGet Package : DevExpress.Wpf.Docking
public FloatGroupCollection FloatGroups { get; }
Public ReadOnly Property FloatGroups As FloatGroupCollection
| Type | Description |
|---|---|
| FloatGroupCollection |
A FloatGroupCollection object which is a collection of floating groups.
|
In XAML, you can create a floating panel as follows:
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.
The following example shows how to create floating panels. To create a floating panel:
A FloatGroup is added to the DockLayoutManager.FloatGroups collection
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>
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.
wpf-docklayoutmanager-dock-panels-in-code/CS/DockPanelInCode_Ex/Window1.xaml#L28
</dxdo:LayoutGroup>
<dxdo:DockLayoutManager.FloatGroups>
<dxdo:FloatGroup FloatLocation="100,50" FloatSize="200,150">
wpf-diagram-mdi/CS/MainWindow.xaml#L150
</dxdo:LayoutGroup>
<dxdo:DockLayoutManager.FloatGroups>
<dxdo:FloatGroup
if (p.IsFloat) {
var floatGroups = owner.FloatGroups;
FloatGroup fg;
If p.IsFloat Then
Dim floatGroups = owner.FloatGroups
Dim fg As FloatGroup
See Also