DesktopMenuEntry record

Namespace Runic.Platform in Runic.Platform 0.23.0

public abstract record DesktopMenuEntry : IEquatable<DesktopMenuEntry>

Inherits or implements IEquatable.

An entry of a menu: a DesktopMenuItem, a DesktopMenuSeparator or a submenu.

Remarks

One model serves the Runic Desktop menu bar (DesktopHostOptions.MenuBar), context menus (IWindowPlatformServices.ShowContextMenuAsync) and status icon menus (DesktopStatusIconState.Menu).

This set is open: a minor release may add entry kinds, so give a switch over entries a default arm. Code that walks a menu skips the entries it does not know.