RayCraftDocs
v1.0.3 raycraft.dev
On this page

CommandContextMenu

Free

A 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

CommandContextMenu control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
ItemsIReadOnlyList<MenuCommand>The commands to show.
LabelstringAccessible name of the menu.
OpenboolShows the menu.
StylestringInline style added to the root element.
XDoubleLeft position in viewport pixels (for example MouseEventArgs.ClientX).
YDoubleTop position in viewport pixels (for example MouseEventArgs.ClientY).

Events

EventTypeDescription
OnCloseEventCallbackRaised when the menu closes: a pick, Escape or a click outside.
OnPickEventCallback<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.