MVVM Light: how to unregister Messenger

后端 未结 3 769
夕颜
夕颜 2021-01-30 08:40

I love the MVVM Light\'s Messenger and its flexibility, however I\'m experiencing memory leaks when I forget to explicitly unregister the recipients (in Silverlight 4).

3条回答
  •  深忆病人
    2021-01-30 09:25

    I've not used MVVM Light (though I've heard great things), but if you want a Messenger implementation that uses WeakReferences, checkout the Messenger included here http://mvvmfoundation.codeplex.com/.

提交回复
热议问题