When should I use ComponentResourceKey instead of a string as a resource key?

The help page on the ComponentResourceKey does not give much guidance when you want to switch from a string key to a ComponentResourceKey to place and / or retrieve resources from a ResourceDictionary. Does anyone know when you want to use ComponentResourceKey over a string?

+5
source share
1 answer

What I understand about ComponentResourceKeys is that they establish global uniqueness by identifying themselves by type and are required for links to resources defined in generic or thematic dictionaries.

, (, generic.xaml), ComponentResourceKey, x: Key UNLESS, generic.xaml MergedDictionaries (, ), , generic.xaml

+3

All Articles