Basically, I want to keep all my XAML resources in an external assembly (for my styles). I have a reference of this external assembly in my application.
Is there something to do with satellite assemblies or whatnot or how do I go about accessing these styles so that my application can still have StaticResource tags without compilation errors?
Assuming you keep your styles in a
ResourceDictionaryin the other assembly, you just need to merge it with your current resources (whether they are on aWindoworUserControlor whatever).If we assume that
ResourceDictionaryis under the namespace Resources; and…then you can merge the dictionaries as below: