MenuBarItem record Core

One menu of a MenuBar: its caption, with an ampersand before the access key ("&File" - Alt+F opens it, "&&" writes one ampersand), and its entries, asked each time the menu opens so they can follow the state.

public sealed record MenuBarItem
Namespace
ArionUI.Presentation.Controls
Package
ArionUI.Presentation · dotnet add package ArionUI.Presentation --prerelease

Constructors

MenuBarItem

public MenuBarItem(LocalText Caption, Func<IReadOnlyList<MenuItem>> Entries);

One menu of a MenuBar: its caption, with an ampersand before the access key ("&File" - Alt+F opens it, "&&" writes one ampersand), and its entries, asked each time the menu opens so they can follow the state.

Parameters

Caption

The caption, the access key marked with an ampersand.

Entries

The entries of the menu, built when it opens.

Properties

Caption

public LocalText Caption { get; init; }

The caption, the access key marked with an ampersand.

Entries

public Func<IReadOnlyList<MenuItem>> Entries { get; init; }

The entries of the menu, built when it opens.