Nov 2, 2012 at 11:51 PM
Edited Nov 3, 2012 at 12:41 AM
What is your file structure?
Views are in folder called views?
if that is the case then you would create a subfolder called EmployeeDetail, in that folder you would create another UserControl (name it DefaultView.xaml, for example) wire up all xmlns as needed to make the control work with CM. Now your string property
MyControl would be assigned the value "DefaultView", now when your app runs that view for EmployeeDetail will have the "DefaultView" as the context.
In your viewmodel is where you would call MyControl = "DefaultView":
in DefaultView you can wire up controls with names associated to Model... x:Name="Model_SomeProperty" this will "deep link" your data in TwoWay mode or you can do it the non-convention way as expected through normal bindings
This is one way of doing view composition in CM