MenuBar
FreeA horizontal menu bar for applications: top-level menus with commands, shortcuts, check marks, icons and submenus. Hovering switches between open menus and the arrow keys move through them.
Example

Parameters
MenuBar
| Parameter | Type | Description |
|---|---|---|
Class | string | Extra CSS classes added to the root element. |
Label | string | Accessible name of the bar. |
Menus | IReadOnlyList<MenuBarMenu> | The top-level menus with their entries. |
Style | string | Inline style added to the root element. |
MenuCommand
| Parameter | Type | Description |
|---|---|---|
Member | Description | |
Label | Text of the entry; null makes a separator. | |
Action | Called after the entry is picked. | |
Shortcut | Text shown at the end of the entry, such as Ctrl+S. It does not bind the keys. | |
Disabled | Dims the entry and ignores it. | |
Checkable, Checked | Shows a check mark when checked. | |
Children | Entries of a submenu. | |
Icon | An icon before the label. |
Events
MenuBar
| Event | Type | Description |
|---|---|---|
OnClose | EventCallback | Raised when a menu is closed with Escape or a click outside. |
OnPick | EventCallback<MenuCommand> | Raised with the picked command before its own Action runs. |
Package
MenuBar is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Send feedbackVersion 1.0.3