Hi,
I have the following situation:
I have assemblies A and B, where A contains the application with the application wide style resources.
B contains user controls and does NOT reference A and does not want to reference an assembly where the styles are defined via MergedDictionaries or something.
Now in B I want to apply a style via resource key that is defined in the application resource dictionary in A. Additionally I want to define styles in B that are BasedOn styles in A.
When I use StaticResource to an application resource I get the DESIGN TIME error "The resource "<Key>" could not be resolved". If I use DynamicResource no error is displayed. But I cannot use it in the BasedOn case, because DynamicResource ist not allowed in BasedOn.
So, how to get rid of this design time errors. They polute my error window.
Thanks
Btw: I searched for solutions in this forum, on stackoverflow and elsewhere. Please refer to this concrete constelation. If a project is needed, I can send one.