Skip to content

ContextMenu.AddItem method (1 of 4)

Adds a command item that uses the command’s presentation.

public void AddItem(Command command)

Adds a non-executable presentation item.

public void AddItem(string text, bool isEnabled = true)

Adds a command item with a presentation and access-key override.

public void AddItem(string text, Command command)

Adds a command item that passes data as the invocation argument.

public void AddItem(string text, Command command, object? data)