所有属性的PropertyChanged:消息=找不到属性 [英] PropertyChanged for all Properties: Message=Property not found
本文介绍了所有属性的PropertyChanged:消息=找不到属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想一次为我的ViewModel
的所有20个属性提高PropertyChanged
并获得解决方案:
I want to raise PropertyChanged
for all 20 Properties of my ViewModel
in once and get the solution:
RaisePropertyChanged(String.Empty)
请参阅: C#/WPF:ViewModel中所有属性的PropertyChanged吗?
由于我使用MVVM Light的GalaSoft.MvvmLight.ViewModelBase.RaisePropertyChanged
,因此出现运行时错误:
Since I use GalaSoft.MvvmLight.ViewModelBase.RaisePropertyChanged
of MVVM Light, I get the runtime error:
Message=Property not found
ParamName=""
Source=GalaSoft.MvvmLight.WPF4
这是因为MVVM Light会检查所有属性名称.
This is because MVVM Light check all Property-Names.
我该怎么办?
推荐答案
您可以提交错误报告,同时,自己更改MVVM Light .
这篇关于所有属性的PropertyChanged:消息=找不到属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文