Skip to content

ToolBarItemMarkupExtensions.CommandData<T> method

Sets CommandData. The value the entry hands its command as the invocation argument, or null to let the nearest argument source supply one. Entries that share a command and differ only in this value show their own Text and Icon.

public static T CommandData<T>(this T target, object? value)
where T : ToolBarItem
parameter description
T Receiver type.
target Target ToolBarItem.
value Value assigned to CommandData.

The same element for chaining.

Sets: ToolBarItem.CommandData