[]
Occurs immediately before the context menu is displayed in the designer.
public event ContextMenuOpenEventHandler ContextMenuOpen
Type | Description |
---|---|
ContextMenuOpenEventHandler | Occurs immediately before the context menu is displayed in the designer. |
This event provides an opportunity to customize the context menu before it is shown to the user. You can add, remove, or modify menu items based on the current state of the designer or the selected elements within it.
Handlers for this event receive an argument of type ContextMenuOpenArgs, which provides information about the context menu and allows for its customization.