Method OnContextMenuOpening
- Namespace
- Alternet.Scripter.Debugger.UI.AlternetUI
- Assembly
- Alternet.Scripter.Debugger.UI.AlternetUI.v10.dll
OnContextMenuOpening(object?, CancelEventArgs)
Handles the event triggered before the context menu is displayed, allowing customization of menu items.
protected virtual void OnContextMenuOpening(object? sender, CancelEventArgs e)
Parameters
sender
objectThe source of the event, typically the control that triggered the context menu.
e
CancelEventArgsA CancelEventArgs instance that can be used to cancel the context menu opening.
Remarks
This method enables or disables specific context menu items based on the current state of the application. It also associates the context menu with the tree node currently under the mouse cursor. Derived classes can override this method to provide additional customization.