共用方式為


ButtonBase.CommandChanged 事件

定義

注意

您必須在專案檔中將 EnablePreviewFeatures 屬性設定為 True,並啟用專案中的預覽功能,才能使用此預覽 API。 如需詳細資訊,請參閱 https://aka.ms/dotnet-preview-features

發生于指派 ICommandCommand 屬性已變更時。

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

事件類型

屬性

適用於