ButtonBase.CommandTarget Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottiene o imposta l'elemento su cui generare il comando specificato.
public:
property System::Windows::IInputElement ^ CommandTarget { System::Windows::IInputElement ^ get(); void set(System::Windows::IInputElement ^ value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.IInputElement CommandTarget { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.CommandTarget : System.Windows.IInputElement with get, set
Public Property CommandTarget As IInputElement
Valore della proprietà
Elemento in cui generare un comando.
- Attributi
Commenti
Impossibile utilizzare la CommandTarget proprietà per definire un oggetto UIElement. La CommandTarget proprietà fornisce un riferimento a un elemento già definito in un punto dell'applicazione.
Utilizzo degli attributi XAML
<ButtonBase CommandTarget="{Binding ElementName= elementName }"/>
Valori XAML
Elementname Nome di IInputElement che riceve il comando.
Informazioni sulle proprietà di dipendenza
| Elemento | Valore |
|---|---|
| Campo Identificatore | CommandTargetProperty |
Proprietà dei metadati impostate su true |
Nessuno |