Back to Devexpress

DockManager.AutoHideContainers Property

windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockmanager-9964d99c.md

latest4.0 KB
Original Source

DockManager.AutoHideContainers Property

Provides access to the auto hide containers and thus to the panels whose auto hide functionality is enabled.

Namespace : DevExpress.XtraBars.Docking

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[XtraSerializableProperty(true, true, true)]
public AutoHideContainerCollection AutoHideContainers { get; }
vb
<Browsable(False)>
<XtraSerializableProperty(True, True, True)>
Public ReadOnly Property AutoHideContainers As AutoHideContainerCollection

Property Value

TypeDescription
AutoHideContainerCollection

The AutoHideContainerCollection object which stores auto hide containers for the dock manager’s DockManager.Form.

|

Remarks

Use the AutoHideContainers property to access the auto hide containers displayed within the dock manager’s DockManager.Form. Auto hide containers are the controls which can be displayed only at the DockManager.Form‘s edges and these contain the auto hidden panels’ buttons. A dock manager’s DockManager.Form can have 0, 1, 2, 3 or 4 auto hide containers. Using indexer notation a specific auto hide container can be accessed by its index or docking style (left, top, right or bottom). Each auto hide container provides access to the collection of auto hidden panels it contains.

The AutoHideContainers collection is read only since auto hide containers are managed automatically and you don’t need to manually create or destroy them. For more information refer to the Working with Panel Containers document.

Example

The following code shows how to disable the auto-hide functionality for the panels which are auto-hidden to the form’s left edge. These panels are accessed via the corresponding AutoHideContainer object.

csharp
using DevExpress.XtraBars.Docking;
// ...
AutoHideContainer ahContainer = dockManager1.AutoHideContainers[DockingStyle.Left];
if(ahContainer != null) {
   while(ahContainer.Count > 0) {
      DockPanel dp1 = ahContainer[ahContainer.Count - 1];
      dp1.Visibility = DockVisibility.Visible;
   }               
}
vb
Imports DevExpress.XtraBars.Docking
' ...
Dim ahContainer As AutoHideContainer = DockManager1.AutoHideContainers(DockingStyle.Left)
If Not ahContainer Is Nothing Then
   While ahContainer.Count > 0
      Dim dp1 As DockPanel = ahContainer(ahContainer.Count - 1)
      dp1.Visibility = DockVisibility.Visible
   End While
End If

See Also

RootPanels

HiddenPanels

DockManager Class

DockManager Members

DevExpress.XtraBars.Docking Namespace