【发布时间】:2011-04-03 01:27:26
【问题描述】:
我想一次性为我的ViewModel 的所有 20 个属性提高PropertyChanged 并获得解决方案:
RaisePropertyChanged(String.Empty)
见:C#/WPF: PropertyChanged for all Properties in ViewModel?
由于我使用了 MVVM Light 的 GalaSoft.MvvmLight.ViewModelBase.RaisePropertyChanged,我得到了运行时错误:
Message=Property not found
ParamName=""
Source=GalaSoft.MvvmLight.WPF4
这是因为 MVVM Light 检查所有属性名称。
我能做什么?
【问题讨论】:
标签: mvvm-light