Jedem Wörterbucheintrag muss ein Schlüsselattribut zugeordnet sein
Ich programmiere mit Windows 8.1 App mit C # und dem MVVM-Light Toolkit von GalaSoft.
Ich habe nur den folgenden Code:
<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>
Der Fehler "Jeder Wörterbucheintrag muss ein zugeordnetes Schlüsselattribut haben" tritt auf und verschwindet nur, wenn ich einen der beiden entferne
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resource Dictionaries/StandardStyles.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
oder
<vm:ViewModelLocator x:Key="Locator" xmlns:vm="using:Scedule.ViewModel" />
Kann mir jemand sagen, was das Problem hier ist?