DockLayoutManager.AutoHideGroups Property
Provides access to the collection of AutoHideGroup objects, containing auto-hidden panels. Allows you to create auto-hidden panels in XAML.
Namespace: DevExpress.Xpf.Docking
Assembly: DevExpress.Xpf.Docking.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
AutoHideGroupCollection | A AutoHideGroupCollection collection of AutoHideGroup objects, containing auto-hidden panels. |
Remarks
In XAML, you can create an auto-hidden panel as follows:
- Add a AutoHideGroup object to the AutoHideGroups collection.
- Add a panel(s) to the created AutoHideGroup.
To specify where an auto-hidden group is docked, use the AutoHideGroup.DockType property.
Example
This example shows how to create auto-hidden panels in XAML. To create auto-hidden panels:
1) AutoHideGroup objects are added to the DockManager.AutoHideGroups collection.
2) Panels are added to the corresponding AutoHideGroup object.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-auto-hidden-panels-e1628.
<dxdo:DockLayoutManager.AutoHideGroups>
<!--Create one AutoHideGroup on the right-->
<dxdo:AutoHideGroup DockType="Right">
<dxdo:LayoutPanel x:Name="paneProperties" Caption="Properties" ItemWidth="150">
<RichTextBox />
</dxdo:LayoutPanel>
<dxdo:LayoutPanel x:Name="paneMessages" Caption="Messages" ItemWidth="150">
<RichTextBox />
</dxdo:LayoutPanel>
</dxdo:AutoHideGroup>
<!--Create two AutoHideGroups on the left-->
<dxdo:AutoHideGroup DockType="Left">
<dxdo:LayoutPanel x:Name="paneErrors" Caption="Errors" ItemWidth="150">
<RichTextBox />
</dxdo:LayoutPanel>
<dxdo:LayoutPanel x:Name="paneWarnings" Caption="Warnings" ItemWidth="150">
<RichTextBox />
</dxdo:LayoutPanel>
</dxdo:AutoHideGroup>
<dxdo:AutoHideGroup DockType="Left">
<dxdo:LayoutPanel x:Name="paneFindResults" Caption="Find Results" ItemWidth="150">
<RichTextBox />
</dxdo:LayoutPanel>
</dxdo:AutoHideGroup>
</dxdo:DockLayoutManager.AutoHideGroups>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the AutoHideGroups 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.