Questions tagged [componentresourcekey]

7 questions
11
votes
3 answers

WPF StaticResource works, DynamicResource doesn't

I have been trying for a day now, to no avail, to create a bunch of brushes in the theme then using them with DynamicResource in a custom control. What I did is this: create the theme generic.xaml which contains styles (works) add a dictionary to…
Siderite
  • 181
  • 1
  • 5
6
votes
3 answers

WPF ResourceDictionary Item has already been added using ComponentResourceKey

I have the following ResourceDictionary that gets merged into my Themes/Generic.xaml file
HaxElit
  • 3,983
  • 7
  • 34
  • 43
3
votes
2 answers

How do I get the actual resource from a ComponentResourceKey?

I have a ComponentResourceKey defined in my resource dictionary like this: