Notify View or ViewModel of changes in Model

Topics: Prism v4 - WPF 4
Mar 1, 2011 at 10:16 AM

Hi everybody,

I'm stuck with a problem and I'm not able to find a "satisfactory" let's put an easy scenario as example:

There are two different views (view1 and view2) with two different viewModels (viewModel1 and viewModel2). Both viewModels get the information of the same model. Let's say view1 or viewModel1 change a value of the model and this value is needed for view2 as well. How can I notify the view2 of the changes?

I get two approaches to solve this problem:

    1) Using eventAggregator (Used in the StockTrader_UI but in a slightly different scenario)

    2) Implementing INotifyProperty on the model to notify the viewModels of the changes and finally notify the view.

I don't really like this two approaches...I'm getting something wrong? it shouldn't be that hard to accomplish something like that, didn't it?

Any suggestions will be greetly appreciated.

Mar 1, 2011 at 4:46 PM


Based on my understanding of your scenario, the second approach seem to be valid to achieve your requirement.

You might find this article handy where the MVVM pattern in a WPF application is fully covered.

Additionally, you can read the following Prism´s documentation chapters:

I hope you find this information useful.


Miguel Bronzovic


Mar 2, 2011 at 2:29 PM

Nice to know, that I'm not doing something wrong or "over-engineering" my code.


Thank you for the reply Miguel!