ContextMenu
Represents a context menu associated to a Control.
Last updated
Was this helpful?
Represents a context menu associated to a Control.
Last updated
Was this helpful?
The Wisej.NET ContextMenu
provides right-click shortcut menus for controls or form areas. These menus can combine relevant items from a form's MainMenu
or introduce new context-specific commands. For example, a TextBox
control's context menu might offer font changes, text search, and clipboard operations.
Controls and forms expose a ContextMenu
property for binding the menu. Multiple controls can share one ContextMenu
. Use the SourceControl
property to identify which control triggered the menu for control-specific actions or menu modifications.
Handle the Popup
event to modify menu items (set check marks, disable items) before display.
For a full list of properties, methods and events see the API documentation.
The ContextMenu
can be assigned to any control supporting the ContextMenu
property.
One ContextMenu
instance serves both Button
and ComboBox
controls.
Class name
"wisej.web.menu.ContextMenu"
Theme appearance
Child components
"icon" is the item's icon, if applicable. "shortcut" is the item's shortcut. "arrow" is the >
arrow icon
Source code
"item", see