Question

In silverlight-MVVM applications, we have to use some kind of mediator/even aggregator file..to commuunicate between different viewmodels.

But I can see that these files maintains list(or dictionary) of objects ...

wont this be using huge amount of memory...? And in case of a web pplication (if it is WPF, that is okay)...is this something recommended ?

Any help would be appreciated. Thanks in advance!

Was it helpful?

Solution

No. Remember it is not making copies of the objects, just pointers to them. However, some implementations of this pattern can cause memory leaks if you do not unregister your objects when you are done with them.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top