I\'ve encountered somewhat of a problem in MEF\'s part lifetime which causes memory leaks in my Prism application.
My application exports views and viewmodels with t
All the other answers provide good ways to circumvent this issue, but what I ended up doing eventually was using my own custom interface, ICleanup, instead of IDisposable. This of course may not be suitable for everyone.
ICleanup
IDisposable