Skip to main content
A newer version of this page is available. .

CommandButtonInfo.Command Property

Gets or sets the command to invoke when the button item is clicked.

Namespace: DevExpress.Xpf.Editors

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, 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.

See Also