Skip to content

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.

csharp
public sealed class MenuItemActivatedEventArgs

Inheritance ​

Object → MenuItemActivatedEventArgs

Properties ​

Context ​

The input binding context.

Returns: InputBindingActionContext

csharp
public InputBindingActionContext Context { get; }

Node ​

The node that raised the event.

Returns: MenuItemNode

csharp
public MenuItemNode Node { get; }

Popups ​

The popup stack for closing menus.

Returns: PopupStack

csharp
public PopupStack Popups { get; }

Widget ​

The widget that raised the event.

Returns: MenuItemWidget

csharp
public MenuItemWidget Widget { get; }

Windows ​

The window manager for managing floating windows.

Returns: WindowManager

csharp
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.

csharp
public void CloseMenu()

Released under the MIT License.