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!

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top