CommandContextMenu
FreeA context menu built from MenuCommand data, with submenus, check marks, shortcuts and the same keyboard handling as MenuBar. It opens at the point you give it and is kept inside the window.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
Class | string | Extra CSS classes added to the root element. |
Items | IReadOnlyList<MenuCommand> | The commands to show. |
Label | string | Accessible name of the menu. |
Open | bool | Shows the menu. |
Style | string | Inline style added to the root element. |
X | Double | Left position in viewport pixels (for example MouseEventArgs.ClientX). |
Y | Double | Top position in viewport pixels (for example MouseEventArgs.ClientY). |
Events
| Event | Type | Description |
|---|---|---|
OnClose | EventCallback | Raised when the menu closes: a pick, Escape or a click outside. |
OnPick | EventCallback<MenuCommand> | Raised with the picked command before its own Action runs. |
Package
CommandContextMenu is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Send feedbackVersion 1.0.3