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 (8)
protected override string TagNameThe element name this type answers to when a caller does not choose one.
protected override AccessibleRole NativeRoleprotected override AccessibleStates NativeAccessibleStatepublic 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 (2)
public KeyboardShortcut ShowShortcut(InputKey key, ModifierKeys modifiers = None)Shows a key combination against the item.
protected override void ShowCheck(bool checkable, bool isChecked)
Used by (23)
- ShellHelloUi
- AccessibilityNotificationTestsVixen.Ui.Controls.Tests
- CommandBindingTestsVixen.Ui.Controls.Tests
- CommandMenuVixen.Ui.Controls.Tests
- KeyMapTestsVixen.Ui.Controls.Tests
- MenuVixen.Ui.Controls
- NestedTagTestsVixen.Ui.Controls.Advanced.Tests
- OverlayInteractionTestsVixen.Ui.Controls.Tests
- SurfaceTestsVixen.Ui.Controls.Tests
- BrowserSavedFilterTestsVixen.Editor.App.Tests
- ComponentsViewVixen.Editor.App
- CreateMenuTestsVixen.Editor.App.Tests
- CurvePresetTestsVixen.Editor.App.Tests
- EditorApplicationVixen.Editor.App
- EditorSessionVixen.Editor.Testing
- EditorShellTestsVixen.Editor.Ui.Tests
- InspectorPanesTestsVixen.Editor.App.Tests
- InspectorViewVixen.Editor.Inspector
- MenuPresenterVixen.Editor.Ui
- MenuTestsVixen.Editor.Ui.Tests
- ProjectBrowserVixen.Editor.App
- SceneMenuBindingTestsVixen.Editor.App.Tests
- ToolbarSectionTestsVixen.Editor.Ui.Tests