Thanks GOstrowsky You saved my life :) :)
I've just downloaded your code, and it works perfectly, however, it adds a view one time, for the second it raises the following exception:
![Exception]()
I solved the problem by adding a new static variable to avoid get the same views names in the the region manager as the following:
Thanks a lot :)
I've just downloaded your code, and it works perfectly, however, it adds a view one time, for the second it raises the following exception:

I solved the problem by adding a new static variable to avoid get the same views names in the the region manager as the following:
privatestaticint viewCounter; public HelloWorldViewModel() { AddView = new DelegateCommand ( () => { viewCounter++; ServiceLocator.Current.GetInstance<IRegionManager>().Regions["RegionInsideDataTemplate"].Add( string.Format("View {0} added through View Injection", viewCounter)); } ); MyRegionManager = ServiceLocator.Current.GetInstance<IRegionManager>(); RaisePropertyChanged("MyRegionManager"); }