Skip to main content
A newer version of this page is available. .

DockManager.ShowingDockGuides Event

Occurs each time an end-user drags a DockPanel into another panel and allows you to hide specific dock hints and guides. This event is in effect when the DockManager is coupled with the DocumentManager component.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

[DXCategory("Docking")]
public event ShowingDockGuidesEventHandler ShowingDockGuides

Event Data

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

Remarks

The ShowingDockGuides event fires when the DockManager is used together with the DocumentManager component (see Interaction with Dock Panels). The DockManager.ShowingDockGuides event fires when you drag a panel over another panel allowing you to hide dock guides that will appear. Dock guides also appear when you drag a panel over the area that is not occupied by dock panels. To hide these dock guides, handle the BaseView.ShowingDockGuides event provided by the DocumentManager’s View (DocumentManager.View).

While handling the DockManager.ShowingDockGuides event, use the e.Panel and e.TargetPanel event parameters to determine the dragged and the landing panels respectively. The e.Configuration parameter methods allow you to hide specific dock hints and guides. The code below illustrates an example.


if(e.Panel.Text == "Panel 1" & e.TargetPanel.Text == "Panel 2") e.Configuration.DisableSideHints();
See Also