FloatGroup Class
A container for floating panels.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v18.2.dll
Declaration
Related API Members
The following members return FloatGroup objects:
Remarks
A FloatGroup object represents a kind of floating window displaying a dock panel, group of dock panels or DocumentPanel in the floating state. The following image shows a FloatGroup object containing two LayoutPanel objects:
Float Groups can be moved within the boundaries of a window or a desktop. This feature is controlled by the DockLayoutManager.FloatingMode option.
To access all Float Groups, use the DockLayoutManager.FloatGroups collection.
See Float Groups to learn more.
Example
The following example shows how to create floating panels. To create a floating panel:
1) A FloatGroup is added to the DockManager.FloatGroups collection
2) A LayoutPanel(s) is added to the created FloatGroup.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-floating-panels-in-xaml-e1635.
<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>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the FloatGroup class.
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.