Skip to main content
Bar

GalleryItem.Command Property

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

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v23.2.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 invoking the gallery item’s functionality, the command is executed first. Then, the GalleryItem.Click event fires. You can optionally specify the object on which to execute the command via the GalleryItem.CommandTarget property or set additional command parameters via the GalleryItem.CommandParameter property. See the Commanding Overview MSDN topic to learn more.

The following code snippets (auto-collected from DevExpress Examples) contain references 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