I have a solution with two WPF projects: Primary and Secondary.
In the main project, a window called PrimaryView creates an instance of UserControl called SecondaryControl, defined in the Secondary project.
SecondaryControl uses the SecondaryStyle, which is defined in SecondaryResourceDictionary (as you might guess, defined in SecondaryProject).
The thing is, when I try to run the solution, I get a XamlParseError and dig up InnerExceptions. In the end, I find the culprit, ResourceNotFound error.
So my questions are:
If SecondaryControl and its SecondaryStyle are defined in the same assembly, why can't I instantiate PrimaryAssembly?
Should I make SecondaryStyle accessible to the PrimaryProject namespace in some way? Why?
wpf resourcedictionary xamlparseexception
heltonbiker
source share