ToolStripItem.CommandCanExecuteChanged Zdarzenie

Definicja

Uwaga

Aby korzystać z tego interfejsu API w wersji zapoznawczej, należy włączyć funkcje w wersji zapoznawczej w projekcie, ustawiając właściwość EnablePreviewFeatures na True w pliku projektu. Aby uzyskać więcej informacji, zobacz https://aka.ms/dotnet-preview-features.

Występuje, gdy CanExecute(Object) stan ICommand właściwości przypisanej Command do właściwości uległ zmianie.

public:
 virtual event EventHandler ^ CommandCanExecuteChanged;
[System.Runtime.Versioning.RequiresPreviewFeatures]
public event EventHandler CommandCanExecuteChanged;
public event EventHandler? CommandCanExecuteChanged;
[<System.Runtime.Versioning.RequiresPreviewFeatures>]
member this.CommandCanExecuteChanged : EventHandler 
member this.CommandCanExecuteChanged : EventHandler 
Public Custom Event CommandCanExecuteChanged As EventHandler 

Typ zdarzenia

Atrybuty

Dotyczy