Skip to content

TrayIconMarkupExtensions.ContextMenu method

Sets ContextMenu. The menu the icon opens; null for an icon without a menu.

public static TrayIcon ContextMenu(this TrayIcon target, ContextMenu? value)
parameter description
target Target TrayIcon.
value Value assigned to ContextMenu.

The same element for chaining.

Sets: TrayIcon.ContextMenu