ButtonBase::CommandTarget Property
.NET Framework (current version)
Gets or sets the element on which to raise the specified command.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: [BindableAttribute(true)] property IInputElement^ CommandTarget { virtual IInputElement^ get() sealed; virtual void set(IInputElement^ value) sealed; }
Implements
ICommandSource::CommandTargetThe CommandTarget property cannot be used to define a UIElement. The CommandTarget property provides a reference to an element that is already defined somewhere in your application.
<ButtonBase CommandTarget="{Binding ElementName=elementName}"/>
- elementName
The name of IInputElement that receives the command.
Identifier field | |
Metadata properties set to true | None |
.NET Framework
Available since 3.0
Available since 3.0
Show: