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

BackstageButtonItem.CommandTarget Property

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

Namespace: DevExpress.Xpf.Ribbon

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Ribbon, DevExpress.Wpf.Navigation

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