how to access viewmodel/view class in another project in Prism+WPF

Topics: Prism v2 - WPF 4, Prism v4 - WPF 4
Sep 25, 2012 at 10:44 AM

Hello experts,

I need to access my viewmodel/view classes in another project in same solution. I am using WPF with Prism framework. Any suggestions?

Sep 27, 2012 at 1:52 PM


I believe you could benefit from using dependency injection containers to achieve this kind of scenarios, this way you should be able to register your view / view models to the container for example through a specific contract name or a common Interface referenced by all your projects. Which will allow you to consume this classes from different projects without knowing their specific implementation.

For more information about the use of dependency injection containers you could check the following chapter of the Prism documentation:

I hope you find this handy,

Agustin Adami