ButtonBase.CommandChanged 事件

定义

注意

若要使用此预览 API,必须通过在项目文件中将 EnablePreviewFeatures 属性设置为 True,在项目中启用预览功能。 有关详细信息,请参阅 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 

事件类型

属性

适用于