ButtonBase.Command Vlastnost

Definice

Poznámka

Pokud chcete toto rozhraní API verze Preview používat, musíte ve svém projektu povolit funkce Preview, a to nastavením vlastnosti EnablePreviewFeatures na True v souboru projektu. Další informace najdete na webu https://aka.ms/dotnet-preview-features.

Získá nebo nastaví ICommand , jehož Execute(Object) metoda bude volána při Click vyvolání události.

public:
 property System::Windows::Input::ICommand ^ Command { System::Windows::Input::ICommand ^ get(); void set(System::Windows::Input::ICommand ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(false)]
[System.Runtime.Versioning.RequiresPreviewFeatures]
public System.Windows.Input.ICommand? Command { get; set; }
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(false)]
public System.Windows.Input.ICommand? Command { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(false)>]
[<System.Runtime.Versioning.RequiresPreviewFeatures>]
member this.Command : System.Windows.Input.ICommand with get, set
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(false)>]
member this.Command : System.Windows.Input.ICommand with get, set
Public Property Command As ICommand

Hodnota vlastnosti

Atributy

Platí pro