I have a multi window wpf app, I create scoped container in each window's viewmodel and inject some window scoped service object into the container, then I use this unity container to resolve views and inject into the window. but in some module, the view have a region host inside and there have some vew registertion in other module. this cause problem, the sub view which has been registered in to view regestery by using RegionManager.RegisterViewWithRegion(regionname, viewtype) will be resolved by a global servicelocator. so the window scoped service object ca not been reterived by thosr viewmodel's cotr
↧