콘텐츠로 이동

ControlExtensions.Item method (1 of 4)

이 콘텐츠는 아직 번역되지 않았습니다.

Adds a semantic command item using command presentation metadata.

public static ContextMenu Item(this ContextMenu menu, Command command)
parameter description
menu Target context menu.
command Semantic command.

The context menu for chaining.


Adds a non-executable presentation item.

public static ContextMenu Item(this ContextMenu menu, string text, bool isEnabled = true)

Adds a semantic command item.

public static ContextMenu Item(this ContextMenu menu, string text, Command command)
parameter description
menu Target context menu.
text Item text.
command Semantic command.

The context menu for chaining.


Adds a command item that passes data as the invocation argument, so several items can share one command and differ only in the value they pass.

public static ContextMenu Item(this ContextMenu menu, string text, Command command, object? data)