FloatGroup Class
A container for floating panels.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v19.1.dll
Declaration
public class FloatGroup :
LayoutGroup,
IClosable
Public Class FloatGroup
Inherits LayoutGroup
Implements IClosable
Related API Members
The following members accept/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.
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.
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>