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.

For a full list of properties, methods and events see the API documentation.

Features

Reusable

The ContextMenu can be assigned to any control supporting the ContextMenu property.

ContextMenu assigned to multiple controls

One ContextMenu instance serves both Button and ComboBox controls.

ContextMenu showing shared instance

Advanced

JavaScript Widget

Item
Description

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

Last updated

Was this helpful?