separate projects for views/viewmodels

May 5, 2011 at 1:10 AM

I am starting to use this wonderful looking framework on a new project. I was wondering if I keep the viewmodels in a project separate from the views, does the automatic linking up still occur or do they have to be in the same assembly? i would think it is smart enough to check referenced assemblies?




May 5, 2011 at 7:27 AM

I usually split view-models and views in different assemblies (at least for base classes) and I can confirm that there is no problem in doing so as long as you register them in the AssemblySource.Instance collection. Note that, unless you use a custom policy for view location, the namespaces should match (My.Project.ViewModels -> My.Project.Views).

May 5, 2011 at 3:42 PM

ok, thanks for the help.. I am sure it was possible...