Table of Contents

Event ContextMenuShowing

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Occurs when a context menu is about to be displayed, allowing the event handler to cancel the operation, substitute context menu, or implement custom logic.

public event EventHandler<HandledEventArgs<ContextMenu?>>? ContextMenuShowing

Returns

EventHandler<HandledEventArgs<ContextMenu>>
Occurs when a context menu is about to be displayed, allowing the event handler to cancel the operation, substitute context menu, or implement custom logic.

Remarks

This event is raised before the context menu is shown. Handlers can inspect the event arguments, change the context menu stored in the Value property, and set the Handled property to true to prevent the menu from being displayed.