Share via


ButtonBase.Command Properti

Definisi

Catatan

Untuk menggunakan API pratinjau ini, Anda harus mengaktifkan fitur pratinjau di proyek dengan mengatur properti ke EnablePreviewFeaturesTrue dalam file proyek Anda. Untuk informasi selengkapnya, lihat https://aka.ms/dotnet-preview-features .

Mendapatkan atau mengatur ICommand metode yang Execute(Object) akan dipanggil ketika Click peristiwa dipanggil.

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

Nilai Properti

Atribut

Berlaku untuk