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.v20.1.dll

Declaration

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

Property Value

Type Description
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.

Examples

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.

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;
   }               
}
See Also