The merged dictionary is invalid. Either a ResourceDictionary is being placed into its own MergedDictionaries collection ...