ButtonBase.Command Egenskap

Definition

Anteckning

Om du vill använda det här förhandsversions-API:et måste du aktivera förhandsgranskningsfunktioner i projektet genom att ange egenskapen EnablePreviewFeatures till True i projektfilen. Mer information finns i https://aka.ms/dotnet-preview-features.

Hämtar eller anger vars ICommand metod anropas Execute(Object) när händelsen Click anropas.

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)]
public System.Windows.Input.ICommand? Command { get; set; }
[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)>]
member this.Command : System.Windows.Input.ICommand with get, set
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(false)>]
[<System.Runtime.Versioning.RequiresPreviewFeatures>]
member this.Command : System.Windows.Input.ICommand with get, set
Public Property Command As ICommand

Egenskapsvärde

Attribut

Gäller för