Your ViewModels will not directly access elements in the view. The concept is that the view will bind to the ViewModel, and not vice versa. So; your ViewModel will tell View what to display through the values ββset in the properties. If your view needs to display something, it will bind data to this property.
Commands will be held by ViewModel, and you can directly link them. If you need a command to update the values ββfor the view, this can be done by holding the link from the command to the necessary ViewModel. (The ViewModel holding the command can, for example, enter itself into the command when creating). The command can then tell the ViewModel to update something, and this will be reflected in the View through Data Binding view.
For a general introduction to the MVVM pattern, you can check out this question that was asked a few days ago: Exploring MVVM for WPF .
stiank81
source share