MenuItem.CommandTarget Właściwość

Definicja

Pobiera lub ustawia element docelowy, na którym ma być wywoływane określone polecenie.

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

Wartość właściwości

Element, na którym ma podnieść określone polecenie. Wartość domyślna to null.

Atrybuty

Uwagi

Właściwość CommandTarget określa element, w którym występuje polecenie. Jeśli CommandTarget nie zostanie ustawiona, element z fokusem klawiatury otrzyma polecenie.

Informacje dotyczące właściwości zależności

Pole identyfikatora CommandTargetProperty
Właściwości metadanych ustawione na true Brak

Dotyczy