Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AutoHideGroupCollection Class

Represents a collection of AutoHideGroup objects.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

#Declaration

public class AutoHideGroupCollection :
    BaseLockableCollection<AutoHideGroup>,
    IDisposable

The following members return AutoHideGroupCollection objects:

#Remarks

An auto-hide group (a AutoHideGroup object) displays a dock panel(s) it owns in auto-hidden mode. There can exist multiple auto-hide groups docked to the top, left, right or bottom edge of the DockLayoutManager container.

To access all auto-hide groups or add new groups, use the DockLayoutManager.AutoHideGroups collection.

#Example

This example shows how to create auto-hidden panels in XAML. To create auto-hidden panels:

1) AutoHideGroup objects are added to the DockLayoutManager.AutoHideGroups collection.

2) Panels are added to the corresponding AutoHideGroup object.

View Example

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

#Inheritance

Object
Collection<AutoHideGroup>
ObservableCollection<AutoHideGroup>
DevExpress.Xpf.Docking.BaseLockableCollection<AutoHideGroup>
AutoHideGroupCollection
See Also