Skip to main content

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.1.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public ICommand Command { get; set; }

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:

  1. The Command is executed.
  2. 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.

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