I have a view (parent), a user control (child), and each have their own viewmodels. I need to tell the user control's view model what the parent's viewmodel primary key (PK) is.
I am creating an instance of the child's viewmodel in the parent viewmodel, but I can't seem to get the child viewmodel to bind to the parent's PK value.
private void Initialize()
// set the datacontext of the parent
if (NavigationActions.DataContext != null)
CurrentParent = (ParentDto)NavigationActions.DataContext;
CurrentParent = new ParentDto();
// create an instance of the child's view
View Complete Post