Feb 21, 2011 at 1:32 PM
Edited Feb 21, 2011 at 1:32 PM
got a step forward. Added an additional [Export] attribute to my view, so now I get the view through ServiceLocator.Current.GetInstance<DocumentSelectionView>()
[ViewExport(RegionName = RegionNames.MainRegion)]
public partial class DocumentSelectionView : UserControl
Is it ok to have 2 export (ViewExport, Export) attributes at the view?
Furthermore I figured out that the ViewModel haven't changed between the instances was caused by missing the following on the _ViewModel_
Conclusion: With PartCreationPolicy NonShared on both the View and the ViewModel it seems to work - I get a new instance using ServiceLocator.
Is that the right approach?