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

AutoHideGroup.AutoHideType Attached Property

Gets or sets the panel’s position when it is hidden. This is an attached property.

Namespace: DevExpress.Xpf.Docking

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

NuGet Package: DevExpress.Wpf.Docking

#Declaration

#Returns

Type Description
AutoHideType

The panel’s position.

#Remarks

When the layout consists of a single panel, the panel is auto-hidden to the Left.

The following code sample docks the AutoHideGroup to the DockLayoutManager‘s bottom when it is hidden and to the right when the group is expanded:

<dx:ThemedWindow 
  ...
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
  xmlns:dxdo="http://schemas.devexpress.com/winfx/2008/xaml/docking">
  <dxdo:DockLayoutManager>
    <dxdo:DockLayoutManager.AutoHideGroups>
      <dxdo:AutoHideGroup DockType="Right">
        <dxdo:LayoutPanel Caption="Panel1" dxdo:AutoHideGroup.AutoHideType="Bottom">
          <!-- Content -->
        </dxdo:LayoutPanel>
      </dxdo:AutoHideGroup>
    </dxdo:DockLayoutManager.AutoHideGroups>
  </dxdo:DockLayoutManager>
</dx:ThemedWindow>

A panel’s AutoHideType property sets to Default each time you re-dock the panel. You can handle the DockLayoutManager.DockItemEndDocking event to get a notification when a panel is being docked and then set the AutoHideType property.

See Also