I have 2 views (first view – custom user control, MainWindow view – main view with first custom control as a child).
First view has TreeView and DependencyProperty SelectedModel which changes when user change selection in TreeView.
Main window view also has label with binding to SelectedModel property of MainWindowModel.
Label doesnt updates.
I think by setting the
DataContextof yourFirstView, it breaks the data inheritance so yourFirstViewwon’t have access to the data (i.e.SelectedModel) defined in your main viewmodel.Try commenting out
and see if it works.