Class MenuItem
A Shortcut-derived object to be used as a menu item in a Menu. Has title, an A Shortcut-derived object to be used as a menu item in a Menu. Has title, an associated help text, and an action to execute on activation.
public class MenuItem : Shortcut, IDisposable, ISupportInitializeNotification, ISupportInitialize, IOrientation, IDesignable
- Inheritance
-
MenuItem
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
- MenuItem()
Creates a new instance of MenuItem.
- MenuItem(View?, Command, string?, string?, Menu?)
Creates a new instance of MenuItem, binding it to
targetViewandcommand. The KeytargetViewhas bound tocommandwill be used as Key.
Properties
- Command
Gets the Command that will be invoked on TargetView when the MenuItem is selected.
- SubMenu
The submenu to display when the user selects this menu item.
Methods
- Dispose(bool)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
- OnMouseEnter(CancelEventArgs)
Called when the mouse moves over the View's Frame and no other non-SubView occludes it. MouseLeave will be raised when the mouse is no longer over the Frame.