I was about to post a question to StackOverflow and it showed me similar
questions. In one I found a link to another similar question that had the
answer i was after.

RegionManager.SetRegionManager(view, this.Container.Resolve<IRegionManager>());
RegionManager.UpdateRegions();

I've added the above to my test just after I create the ViewModel (which
creates the view) and now I can get the region from the RegionManager. I
think its related to the fact that at runtime the shell has the
RegionManager but during the test there is no shell.

cheers,
Stephen

On Wed, Mar 24, 2010 at 7:47 AM, Miguel Madero <[email protected]> wrote:

> AFAIR the Bootstrapper adds the RegionManager to the Container and I'd
> think that the attached property is getting it from there.
>
> --
> Miguel A. Madero Reyes
> www.miguelmadero.com (blog)
> [email protected]
>
> _______________________________________________
> ozsilverlight mailing list
> [email protected]
> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
>
>
_______________________________________________
ozsilverlight mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to