Skip to main content

How to: Access auto-hidden panels

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