Class Menuv2
A Bar-derived object to be used as a vertically-oriented menu. Each subview is a MenuItemv2.
public class Menuv2 : Bar, IDisposable, ISupportInitializeNotification, ISupportInitialize, IOrientation, IDesignable
- Inheritance
-
Menuv2
- Implements
- Derived
- Inherited Members
Constructors
Properties
- SelectedMenuItem
Gets or set the currently selected menu item. This is a helper that tracks Focused.
- SuperMenuItem
Gets or sets the menu item that opened this menu as a sub-menu.
Methods
- EndInit()
Signals the View that initialization is ending. See ISupportInitialize.
- OnAccepted(CommandEventArgs)
Called when the user has accepted an item in this menu (or submenu). This is used to determine when to hide the menu.
- OnAccepting(CommandEventArgs)
Called when the user is accepting the state of the View and the Accept has been invoked. Set CommandEventArgs.Cancel to true and return true to stop processing.
- OnFocusedChanged(View?, View?)
Called when the focused view has changed.
- OnSelectedMenuItemChanged(MenuItemv2?)
Called when the selected menu item has changed.
- OnSubViewAdded(View)
Called when a SubView has been added to this View.
- OnVisibleChanged()
Called when Visible has changed.
- RaiseAccepted(ICommandContext?)
Raises the OnAccepted(CommandEventArgs)/Accepted event indicating an item in this menu (or submenu) was accepted. This is used to determine when to hide the menu.
Events
- Accepted
Raised when the user has accepted an item in this menu (or submenu). This is used to determine when to hide the menu.
- SelectedMenuItemChanged
Raised when the selected menu item has changed.