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
- DefaultBorderStyle
Gets or sets the default Border Style for Menus. The default is None.
- 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
- Dispose(bool)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
- 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.Handled to true and return true to indicate the event was handled and processing should stop.
- 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.