MVVM Light 工具包VerifyPropertyName
在 Silverlight 页面的设计视图中,我收到以下错误: -
未找到属性
参数名称:batchGender
at GalaSoft.MvvmLight.ViewModelBase.VerifyPropertyName(String propertyName)
等...
在 ViewModel 中有一个名为batchGender 的属性名称我已将其更改为性别。任何地方都没有出现其他的batchGender。这是 VS 中“在文件中查找”搜索的结果: -
查找所有“batchGender”、子文件夹、保持修改的文件打开、查找结果 1、“当前项目”、“” 匹配行:0 匹配文件:0 搜索文件总数:90
如您所见,在任何地方都找不到字符串,但是错误不会消失。对于为什么 MVVM 工具包认为这个仍然存在,有人有任何建议吗?
In the Design View of a Silverlight page I am getting the following error: -
Property not found
Parameter name: batchGender
at GalaSoft.MvvmLight.ViewModelBase.VerifyPropertyName(String propertyName)
etc....
In the ViewModel there was a property name called batchGender which I have changed to Gender. There are no other occurrences of batchGender anywhere. This is the result of a 'Find in Files' search in VS: -
Find all "batchGender", Subfolders, Keep modified files open, Find Results 1, "Current Project", ""
Matching lines: 0 Matching files: 0 Total files searched: 90
As you can see that string cannot be found anywhere, however the error will not go away. Does anyone have any suggestions as to why the MVVM toolkit thinks this still exists.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来您的某个二进制文件已过时,并且您的项目依赖项可能不正确。尝试清理整个解决方案(以及所有依赖项(如果适用)),然后重建。
Sounds like one of your binaries is outdated, and maybe your project dependencies are incorrect. Try cleaning the entire solution (and if applicable, any dependencies), and then rebuilding.