Vixen
02b45cc4
csharp
public sealed class MenuItem

One line of a menu.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

A button, because that is what it is: it takes the focus, it answers to Enter and Space, and it raises a click. What it has on top is a place for a shortcut on the right and, if it opens one, a submenu.

Fields and properties (6)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • public Menu? Submenu

    The submenu this opens, if it has one.

  • public Icon Arrow

    The arrow shown on the right when the item opens a submenu.

  • public KeyboardShortcut? Shortcut

    The shortcut shown on the right, if any.

  • public Icon Mark

    The tick shown when the item is a checkable one that is on.

  • public TextBlock Detail

    A quiet word at the right saying what kind of thing the line is.

Methods (1)

Used by (12)

  • ShellHelloUi
  • MenuVixen.Ui.Controls
  • OverlayInteractionTestsVixen.Ui.Controls.Tests
  • SurfaceTestsVixen.Ui.Controls.Tests
  • CreateMenuTestsVixen.Editor.App.Tests
  • EditorApplicationVixen.Editor.App
  • EditorSessionVixen.Editor.Testing
  • EditorShellTestsVixen.Editor.Ui.Tests
  • InspectorViewVixen.Editor.Inspector
  • MenuPresenterVixen.Editor.Ui
  • MenuTestsVixen.Editor.Ui.Tests
  • ToolbarSectionTestsVixen.Editor.Ui.Tests