Skip to main content

DockManager.ShowingDockGuides Event

Occurs when an end-user drags a DockPanel into another panel and allows you to hide specific dock hints and guides. If the DocumentManager component is also present on the form, handle its BaseView.ShowingDockGuides event to control which dock hints should be visible when a user drags a panel over this component.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v23.2.dll

NuGet Package: DevExpress.Win.Navigation


public event ShowingDockGuidesEventHandler ShowingDockGuides

Event Data

The ShowingDockGuides event's data class is DevExpress.XtraBars.Docking.ShowingDockGuidesEventArgs.


The figure below illustrates all dock hints that can be displayed when a user drags one dock panel into another. If a target panel is not docked into the middle, hints 6, 7, 8 and 9 are not shown.


The ShowingDockGuides event arguments allow you to identify which panel a user drags…

if (e.Panel == dockPanel1) {
    //. . .

…and which panel the user hovers over.

if (e.TargetPanel == dockPanel2) {
    //. . .

The Configuration property exposes multiple public methods that allow you to hide individual dock hints and their parent guides.

Dock hint 1


Dock hints 2, 3, 4 and 5

e.Configuration.Disable(DockHint.CenterLeft); //hint #2
e.Configuration.Disable(DockHint.CenterTop); //hint #3
e.Configuration.Disable(DockHint.CenterRight); //hint #4
e.Configuration.Disable(DockHint.CenterBottom); //hint #5

Dock hints 6, 7, 8 and 9

These hints are shown only when a user drags a panel into a center-docked panel.

e.Configuration.Disable(DockHint.CenterSideLeft); //hint #6
e.Configuration.Disable(DockHint.CenterSideTop); //hint #7
e.Configuration.Disable(DockHint.CenterSideRight); //hint #8
e.Configuration.Disable(DockHint.CenterSideBottom); //hint #9

Dock hints 10, 11, 12 and 13

e.Configuration.Disable(DockHint.SideLeft); //hint #10
e.Configuration.Disable(DockHint.SideTop); //hint #11
e.Configuration.Disable(DockHint.SideRight); //hint #12
e.Configuration.Disable(DockHint.SideBottom); //hint #13

Outer side hints (hints 10 to 13)


All side hints (hints 6 to 13)


Central guide (includes hints 1 to 9)

//when a target panel is docked to a side
//when a target panel is docked to the middle

Snap guides

These guides appear when you drag a panel to the edge of a screen.

See Also