I have a external library to hold all themes in which i am defining a style for PlainViews. The plainview class that extends viewbase sits in another project. My app won't load the xaml for the plainview. it seems like it can't find the resourceid associated with the PlainView
Here's the xaml defining the plainview
<Style x:Key="{ComponentResourceKey
TypeInTargetAssembly={x:Type Common:PlainView},
ResourceId= PlainViewRsx}"
TargetType="{x:Type ListView}"
BasedOn="{StaticResource {x:Type ListBox}}">
</Style>
the PlainView code behind is defined in another project.
I'm not sure if i understand your proplem correctly (or even if you still have this problem), so i'm telling you my approach, I think i needed something similar:
First make sure that you have all the required references in all the needed projects.
The Class which stores the Keys:
My theme files looked something like this:
And the control/page whereever I wanted to use the brush looked like this:
that blog-post helped me quite a lot: MSDN Support Forum - Loading Styles from My Assembly
I'm not sure if that helps you. If not, please try to describe your problem in more details.