Partager via


MenuItem.CommandTarget Propriété

Définition

Obtient ou définit l’élément cible sur lequel déclencher la commande spécifiée.

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

Valeur de propriété

Élément sur lequel déclencher la commande spécifiée. La valeur par défaut est null.

Attributs

Remarques

La CommandTarget propriété spécifie l’élément où la commande se produit. S’il CommandTarget n’est pas défini, l’élément qui a le focus clavier reçoit la commande.

Informations sur les propriétés de dépendance

Élément Valeur
Champ d’identificateur CommandTargetProperty
Propriétés de métadonnées définies sur true Aucun

S’applique à