Hi All,
I am new in MVVM and WPF. so be easy with me.
I have a model (model A) in MVVM, in the ViewModel I have a collection. The collection is present in the View as ListView. I have another model (model B - not ui model) that need to do something every time that the listview is changing.
How can I alert model B on the selection change? What will be the right way?
- By event that model A (ViewModel) will fire, and model B will catch?
- By attached property of model A?
- By notify property change?
- By sending relay commands from model B to model A?