Neil Hobson
Neil Hobson

Reputation: 515

Share WPF Resources between 2 Non-Referenced WPF Projects

I have 2 Class Libraries that contain WPF Controls and resources in a Solution. I want to be able to share resources between them at Design-Time so I can actually see what I'm designing. At run-time everything is ok, as I am loading the dlls dynamically.

If I reference each project to each other I get a circular dependency issue

I am using blend & if I add a reference to the DesignTimeResources.xaml, a project reference is added which I don't want.

Any help appreciated.

Upvotes: 0

Views: 202

Answers (2)

Sivasubramanian
Sivasubramanian

Reputation: 965

The below link demonstrates step by step process to achieve your requirement. I hope this will help you.

Set up the project for design-time debugging

Upvotes: 0

Gerhard Powell
Gerhard Powell

Reputation: 6185

Create a common project, and have both projects reference it. Then you will not have a circular reference.

If you make the class static, then it is even easier to share data.

Upvotes: 1

Related Questions