Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a View with multiple UserControls. Each UserControl has its one ViewModel. The ViewModels inheritances from a baseViewModel, which implements the INotifyPropertyChanged stuff.
One of the viewmodel contains a datagrid and another has a textbox and an apply button. Independently everything is working fine. But I would like to apply the entered number from the textbox in the list from the other ViewModel.

Does anyone have a dummy friendly explanation to achieve this?

edit/

<img src="http://image-upload.de/thumb/ZAscqq/5285303a83.jpg" alt="image-upload.de" border="0">

Which way should I use? No1 Direct comunication ViewModel1 <-> ViewMode2 or No2 ViewModel1<->Model<->ViewModel2
Posted
Updated 13-Mar-14 23:23pm
v3

1 solution

Please check, whether the below code will use for you

http://code.msdn.microsoft.com/Basic-WPF-Code-4aab4e1a[^]

Artha
 
Share this answer
 
Comments
matlab22 14-Mar-14 5:24am    
Hmm not really. There is not much explanation.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900