英文:
I am getting an error: "Cannot apply attribute class 'ICommand' because it is abstract"
问题
I installed 8.0.0 version of MVVM package. I tried it with another version too. I tried to resolve the issue by changing the package to current version but the same error is triggered again can you please help me to sort it?
英文:
I tried to resolve the issue by changing the package to current version but the same error is triggered again can you please help me to sort it
答案1
得分: 1
请将[ICommand]
更改为[RelayCommand]
,例如:
[RelayCommand]
void Add()
{
}
在Community Toolkits MVVM包中,没有[ICommand]
属性,而是一个[RelayCommand]
属性。
英文:
Please change the [ICommand]
to the [RelayCommand]
. Such as:
[RelayCommand]
void Add()
{
}
There is no [ICommand]
attribute in the Community Toolkits MVVM package but a [RelayCommand]
attribute.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论