Use the AutoHideContainers property to access the auto hide containers displayed within the dock manager's Form.
Auto hide containers are the controls which can be displayed only at the Form's edges and these contain the auto hidden panels' buttons. A dock manager's 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.
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.
C# |
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
|