How to dispose off the relay command in mvvm wpf model
问题 I have this app using MVVM wpf model along with John Smith's relay command class. There are two main issues with it: 1) Even after disposing the view model and setting the commands to null, they are still fired afterwards. 2) The view model although disposed off, still seems to be in memory. It's using tab control on top and the memory never gets cleaned even after closing the tabs. This is related to the view model since once the properties of the view model are set to null, the next time