我正在使用MVVM构建Windows 8应用程序。到现在为止还好。但是,当我使用EventToCommand时,会出现多个错误。一个类似的问题是在这里EventToCommand not working when migrate to v4 for SL5,但遗憾的是,它不能解决我的问题。它自动添加以下引用:
xmlns:command1="http://www.galasoft.ch/mvvmlight"收到的错误:
名称空间"clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.WP8“中不存在名称"EventToCommand”。
找不到“命令:EventToCommand”类型。确认您没有丢失程序集引用,并且所有引用的程序集都已生成。
在XML命名空间'clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.WP8‘中不存在标记'EventToCommand’
如果我错过了什么或者做错了什么,请告诉我。
谢谢
发布于 2013-10-23 19:10:17
下面是正确的xmlns (程序集名称中缺少Extras ):
xmlns:Command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP8"发布于 2013-10-23 19:11:30
代之以
xmlns:command1="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP8"发布于 2014-11-02 20:20:01
在最近的版本中,该命令转移到平台程序集:
xmlns:command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Platform"https://stackoverflow.com/questions/19550099
复制相似问题