Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BackstageButtonItem.CommandTarget Property

Gets or sets a target control on which a command is executed.

Namespace: DevExpress.Xpf.Ribbon

Assembly: DevExpress.Xpf.Ribbon.v24.2.dll

NuGet Package: DevExpress.Wpf.Ribbon

#Declaration

public IInputElement CommandTarget { get; set; }

#Property Value

Type Description
IInputElement

An IInputElement object .

#Remarks

If a command’s type is routed, the command source can explicitly set the command target using CommandTarget. If the corresponding command is not a RoutedComand, the command target is ignored.

If the command target is not defined, the element with keyboard focus will be used as the command target. This allows invoking the same command on multiple targets without having to keep track of the command target.

See Also