Created
June 12, 2016 14:01
-
-
Save rohits79/72175383c4e8682c945acd5933ffbca6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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