BackstageButtonItem.CommandTarget Property
In This Article
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 |
---|---|
IInput |
An IInput |
#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