CommandButtonInfo.Command Property
Gets or sets the command to invoke when the button item is clicked.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
ICommand | The ICommand object to invoke when the gallery item is clicked. |
Remarks
When you click the button, the following events occur:
- The Command is executed.
The CommandButtonInfo.Click event fires.
Note
You can optionally specify the object on which to execute the command with the CommandButtonInfo.CommandTarget property or set additional command parameters with the CommandButtonInfo.CommandParameter property.
Related GitHub Examples
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.