Search code examples
wpfxamlresourcedictionary

Cannot add Style to Resourcedictionary


I'm getting following error when try to add style to Resourcedictionary.

cannot add content of type 'system.windows.style' to an object of type 'system.windows.resourcedictionary'

Solution

  • This is due duplicate keys. Finaly found another style added with same key.