Multiple Views to a viewmodel mapping - not working

Topics: Conventions
Jan 13, 2014 at 1:01 PM
Have a Viewmodel - ElasticityCurvesViewModel.cs under namespace PO.ViewModels.Historical under Historical folder.
Now I need to map this viewmodel to two views - ElasticityCurvesCurveView.xaml and ElasticityCurvesSelectionView.xaml under namespace PO.Views.Historical.

Please let me know the steps for the same.
The documentation on caliburn side is very confusing and its not working anyways.

Early response would be appreciated.
Jan 14, 2014 at 7:44 AM
<ContentControl  cal:View.Context="{Binding CurrentView, Mode=TwoWay}"
                                   cal:View.Model="{Binding}" />

CurrentView = string property in viewmodel that is set to what the name of the view you want to show.
CurrentView = "ElasticityCurvesSelectionView"; //etc

cal:View.Model = is assumed to be the currently active viewmodel.