我正在使用MVVM Light构建Windows Phone 8应用程序。到现在为止还挺好。但是,当我使用EventToCommand时,出现多个错误。一个类似的问题是,这里的EventToCommand在迁移到SL5的v4时无法正常工作,但可惜它不能解决我的问题。它会自动添加以下参考:
xmlns:command1="http://www.galasoft.ch/mvvmlight"
我收到的错误:
名称空间“ clr-namespace:GalaSoft.MvvmLight.Command; assembly = GalaSoft.MvvmLight.WP8”中不存在名称“ EventToCommand”。
找不到类型'command:EventToCommand'。验证您没有丢失程序集引用,并且所有引用的程序集均已构建。
XML名称空间'clr-namespace:GalaSoft.MvvmLight.Command; assembly = GalaSoft.MvvmLight.WP8'中不存在标签'EventToCommand'。
让我知道我是否遗漏了任何东西或做错了什么。
谢谢
这是正确的xmlns(程序集名称中缺少Extras):
xmlns:Command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP8"
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句