Skip to main content

NeedsUpdate Event

Raised when the menu requests an update.

Definition​

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public event EventHandler<EventArgs> NeedsUpdate
View Source

Value​

EventHandler(EventArgs)

Remarks​

Use this event to add, remove or modify menu items before a menu is shown or a hotkey is pressed.

See Also​

Reference​

NativeMenu Class
Avalonia.Controls Namespace