MenuItemActivatedEventArgs
Namespace: Hex1b.Events
Assembly: Hex1b.dll
Event arguments for when a menu item is activated (user triggers the action). Note: All menus are automatically closed after the activation handler completes.
public sealed class MenuItemActivatedEventArgsInheritance
Object → MenuItemActivatedEventArgs
Properties
Context
The input binding context.
Returns: InputBindingActionContext
public InputBindingActionContext Context { get; }Node
The node that raised the event.
Returns: MenuItemNode
public MenuItemNode Node { get; }Popups
The popup stack for closing menus.
Returns: PopupStack
public PopupStack Popups { get; }Widget
The widget that raised the event.
Returns: MenuItemWidget
public MenuItemWidget Widget { get; }Windows
The window manager for managing floating windows.
Returns: WindowManager
public WindowManager Windows { get; }Methods
CloseMenu()
Manually closes all menus. This is called automatically after the handler completes, so you typically don't need to call it. However, if you need to close menus before an async operation completes, you can call this explicitly.
public void CloseMenu()