MenuBar
FreeUma barra de menus horizontal para aplicativos: menus de nível superior com comandos, atalhos, marcas, ícones e submenus. Passar o ponteiro alterna entre menus abertos e as setas percorrem os menus.
Exemplo

Parâmetros
MenuBar
| Parâmetro | Tipo | Descrição |
|---|---|---|
Class | string | Classes CSS extras adicionadas ao elemento raiz. |
Label | string | Nome acessível da barra. |
Menus | IReadOnlyList<MenuBarMenu> | Os menus de nível superior com suas entradas. |
Style | string | Estilo embutido adicionado ao elemento raiz. |
MenuCommand
| Parâmetro | Tipo | Descrição |
|---|---|---|
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. |
Eventos
MenuBar
| Evento | Tipo | Descrição |
|---|---|---|
OnClose | EventCallback | Gerado quando um menu é fechado com Escape ou com um clique fora. |
OnPick | EventCallback<MenuCommand> | Gerado com o comando escolhido antes de o seu próprio Action ser executado. |
Pacote
MenuBar faz parte do RayCraft Free. Pacote: RayCraft.Blazor. Vem do nuget.org. Veja Primeiros passos.
Enviar feedbackVersão 1.0.3