Binding Parent Control with Child control's view model prope
We have a window where tabs will be added dynamically. Each tab has different view models and the window itself has mainviewmodel. Now i want to set one of the parent window's control with child tab's viewmodel. How to bind with childview model property?
Eg:
TabView- TabViewModel
View1-ViewModel1
View2-ViewModel2
View3-ViewModel3
Now i want to set visibility for an icon in the tab header for the first tab(View1) based on the property in ViewModel1.
Any suggestions?