csharp
public sealed class MenuItemOne 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 TagNameThe element name this type answers to when a caller does not choose one.
public Menu? SubmenuThe submenu this opens, if it has one.
public Icon ArrowThe arrow shown on the right when the item opens a submenu.
public KeyboardShortcut? ShortcutThe shortcut shown on the right, if any.
public Icon MarkThe tick shown when the item is a checkable one that is on.
public TextBlock DetailA quiet word at the right saying what kind of thing the line is.
Methods (1)
public KeyboardShortcut ShowShortcut(InputKey key, ModifierKeys modifiers = None)Shows a key combination against the item.
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