Class MenuBarItemv2
A Shortcut-derived object to be used as items in a MenuBarv2. MenuBarItems have a title, a hotkey, and an action to execute on activation.
public class MenuBarItemv2 : MenuItemv2, IDisposable, ISupportInitializeNotification, ISupportInitialize, IOrientation, IDesignable
- Inheritance
-
MenuBarItemv2
- Implements
- Inherited Members
Constructors
- MenuBarItemv2()
Creates a new instance of MenuBarItemv2.
- MenuBarItemv2(string, IEnumerable<View>)
Creates a new instance of MenuBarItemv2 with the
menuItems
automatcialy added to a PopoverMenu. This is a helper for the most common MenuBar use-cases.
- MenuBarItemv2(string, PopoverMenu?)
Creates a new instance of MenuBarItemv2 with the specified
popoverMenu
. This is a helper for the most common MenuBar use-cases.
- MenuBarItemv2(View?, Command, string?, PopoverMenu?)
Creates a new instance of MenuBarItemv2. Each MenuBarItem typically has a PopoverMenu that is shown when the item is selected.
Properties
- PopoverMenu
The Popover Menu that will be displayed when this item is selected.
- SubMenu
Do not use this property. MenuBarItem does not support SubMenu. Use PopoverMenu instead.
Methods
- Dispose(bool)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
- OnKeyDownNotHandled(Key)
Called when the user has pressed key it wasn't handled by KeyDown and was not bound to a key binding.