Class MenuBarItem
A Shortcut-derived object to be used as items in a MenuBar. MenuBarItems hold a PopoverMenu instead of a SubMenu.
public class MenuBarItem : MenuItem, IDisposable, ISupportInitializeNotification, ISupportInitialize, IOrientation, IDesignable
- Inheritance
-
MenuBarItem
- Implements
- Inherited Members
- Extension Methods
Constructors
- MenuBarItem()
Creates a new instance of MenuBarItem.
- MenuBarItem(string, IEnumerable<View>)
Creates a new instance of MenuBarItem with the
menuItemsautomatcialy added to a PopoverMenu. This is a helper for the most common MenuBar use-cases.
- MenuBarItem(string, PopoverMenu?)
Creates a new instance of MenuBarItem with the specified
popoverMenu. This is a helper for the most common MenuBar use-cases.
- MenuBarItem(View?, Command, string?, PopoverMenu?)
Creates a new instance of MenuBarItem. 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.
- PopoverMenuOpen
Gets or sets whether the MenuBarItem is active. This is used to determine if the MenuBarItem should be
- 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.
- OnHasFocusChanged(bool, View?, View?)
Invoked after HasFocus has changed. This method is called before the HasFocusChanged event is raised.
- OnKeyDownNotHandled(Key)
Called when the user has pressed key it wasn't handled by KeyDown and was not bound to a key binding.