Esta documentación está archivada y no tiene mantenimiento.

ButtonBase.CommandTarget (Propiedad)

Gets or sets the element on which to raise the specified command.

Espacio de nombres: System.Windows.Controls.Primitives
Ensamblado: PresentationFramework (en presentationframework.dll)
Espacio de nombres XML:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

[BindableAttribute(true)] 
public IInputElement CommandTarget { get; set; }
/** @property */
public final IInputElement get_CommandTarget ()

/** @property */
public void set_CommandTarget (IInputElement value)

public final function get CommandTarget () : IInputElement

public function set CommandTarget (value : IInputElement)

<ButtonBase CommandTarget="{Binding ElementName=elementName}"/>
 elementName  The name of IInputElement that receives the command. 

Valor de propiedad

Element on which to raise a command.

The 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.

Microsoft .NET Framework 3.0 es compatible con Windows Vista, Microsoft Windows XP SP2 y Windows Server 2003 SP1.

.NET Framework

Compatible con: 3.0
Mostrar: