Occurs when a context menu is about to be displayed.
[DXCategory("Docking")] public event PopupMenuShowingEventHandler PopupMenuShowing
<DXCategory("Docking")> Public Event PopupMenuShowing As PopupMenuShowingEventHandler
The PopupMenuShowing event's data class is PopupMenuShowingEventArgs. The following properties provide information specific to this event:
|Cancel||Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.|
|Control||Gets the dock control for which the DockManager.PopupMenuShowing event has been fired.|
|Menu||Gets the popup menu that is to be displayed.|
|Point||Gets the popup menu's location.|
The DockManager objects support context menus for dock panels and auto-hide containers. The PopupMenuShowing event fires when an attempt is made to display such a context menu. You can handle this event to customize the menu (add new items or remove the existing ones). Menu items in the menu are represented by the DXMenuItem class objects and its descendants.
To prevent the menu from being invoked, set the Allow parameter to false.