I am building a wpf app with prism 4.0 as well as MEF.
Sample code like below:
public partial class ModuleBuildingApprovalView : UserControl, IView, INavigationAware
public class ModuleBuildingApprovalViewModel : BaseViewModel
The problem is each time the view is opened, it's not disposed by GC after it's closed, that may cause big memory leak. Any good way to dispose the view and viewmodel manaully in code?