Skip to main content
All docs
V19.2

ButtonInfo.Command Property

Gets or sets a command associated with the button. This is a dependency property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v19.2.dll

Declaration

public ICommand Command { get; set; }

Property Value

Type Description
ICommand

An object implementing the ICommand interface that represents a command associated with the button.

Remarks

If the command should not be executed on the button, but on another element, specify the element via the ButtonInfo.CommandTarget property. You can also pass a parameter to the command using the ButtonInfo.CommandParameter property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Command property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also