Skip to content

Instantly share code, notes, and snippets.

@rohits79
Created June 12, 2016 14:01
Show Gist options
  • Save rohits79/72175383c4e8682c945acd5933ffbca6 to your computer and use it in GitHub Desktop.
Save rohits79/72175383c4e8682c945acd5933ffbca6 to your computer and use it in GitHub Desktop.
// Uncomment the following three lines and we get exception, this gets fixed with scoped region
var region = regionManager.Regions["ViewA"];
region.Add(unityContainer.Resolve<ViewA>());
region.Add(unityContainer.Resolve<ViewA>());
// the following works
// regionManager.AddToRegion("ViewA", unityContainer.Resolve<ViewA>());
// regionManager.AddToRegion("ViewA", unityContainer.Resolve<ViewA>());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment