BackstageButtonItem.CommandTarget Property

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

Namespace: DevExpress.Xpf.Ribbon

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


public IInputElement CommandTarget { get; set; }
Public Property CommandTarget As IInputElement

Property Value

Type Description

An IInputElement object .


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