我使用C#编写Windows 8.1应用程序,并使用GalaSoft提供的MVVM-Light Toolkit进行编程。每个字典条目必须具有关联的键属性
我只有下面的代码:
<Application.Resources>
<vm:ViewModelLocator x:Key="Locator" xmlns:vm="using:Scedule.ViewModel" />
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resource Dictionaries/StandardStyles.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
错误“每个字典条目必须具有相关联的密钥属性”发生时,并且当我要么仅去除消失
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resource Dictionaries/StandardStyles.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
或
<vm:ViewModelLocator x:Key="Locator" xmlns:vm="using:Scedule.ViewModel" />
谁能告诉我这里的问题是什么?
也许欺骗:HTTP:// stackoverflow.com/questions/16514137/errors-in-app-xaml-trying-to-use-mvvm-light-in-windows-phone-8-project – Bit
'当我将视觉树移除或者 - >这句话对我来说毫无意义。 –
@ M4TKD我已经检查过这个帖子,并没有帮助我。它被告知删除MergedDictionary,但这正是我想在这里实现的。 – FunkyPeanut