MenuItem
Represents an individual item that is displayed within a MainMenu or ContextMenu.
Last updated
Was this helpful?
Represents an individual item that is displayed within a MainMenu or ContextMenu.
Last updated
Was this helpful?
The Wisej.NET MenuItem
must be added to a MainMenu
, MenuBar
, or ContextMenu
for display. Create submenus by adding MenuItem
objects to a parent MenuItem
's MenuItems
property.
Configure appearance and functionality through properties:
Checked
: Displays a check mark (useful for mutually exclusive options like text color selection)
Shortcut
: Defines keyboard selection combination
In MDI applications, use MergeMenu
to combine MDI parent and child form menus. Since a MenuItem
cannot exist in multiple locations simultaneously (like MainMenu
and ContextMenu
), use CloneMenu
to create copies.
Events enable dynamic control:
Popup
: Perform pre-display tasks (show/hide items based on application state)
Select
: Execute actions when users hover (e.g., display detailed help)
For a full list of properties, methods and events see the API documentation.
Class name
"wisej.web.menu.MenuItem"
Theme appearance
"item", see
Child components
"icon" is the item's icon, if applicable
Source code