ContextMenu
Represents a context menu associated to a Control.
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.
Features
Reusable
The ContextMenu can be assigned to any control supporting the ContextMenu property.

One ContextMenu instance serves both Button and ComboBox controls.

Advanced
JavaScript Widget
Class name
"wisej.web.menu.ContextMenu"
Theme appearance
"item", see Themes
Child components
"icon" is the item's icon, if applicable. "shortcut" is the item's shortcut. "arrow" is the > arrow icon
Source code
Last updated
Was this helpful?

