komizo
komizo

Reputation: 1061

What is the good practise to prepare lousily coupled ViewModels which has to interact together somehow

Use case:

Proposed, known solutions:

Do you know any good practise advise?

Goal:

Upvotes: 2

Views: 63

Answers (1)

rory.ap
rory.ap

Reputation: 35290

I have used the mediator pattern in the past for interactions between view models. It basically allows you to have a number of "colleagues" (the view models) that are interested in information and changes and can alert each other through the mediator.

Upvotes: 3

Related Questions