ResourceDictionary in MergedDictionaries Source calling VS 2012 Designer does not load

ResourceDictionary Source = "..." ist is underlined, and VS constructor throws an exception. Everything works in VS 2008

<ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/MySolution.MyProject;component/Styles/MyStyles.xaml" /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> 

An exception:

Exception: value cannot be null. Parameter Name: item (Same for InnerException) with Microsoft.Expression.Platform.InstanceBuilders.ClrObjectInstanceBuilder.InstantiateChildren(IInstanceBuilderContext context, ViewNode viewNode, DocumentCompositeNode compositeNode, Boolean isNewInstance)

+4
source share
1 answer

What is the "build action" set for your MyStyles.xaml?

try setting this to a "page" if it is not already configured in this way.

see this other answer for details: (it seems to me that this might be related in some way)

The TargetType style throws a XamlParseException when it is not bound to a debugger

0
source

All Articles