Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

Created Issue: scpoed unity container and RegionManager.RegisterViewWithRegion [9693]

$
0
0
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

Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>