When does a Prism view/view model get freed up/disposed/GC'd?

Topics: Prism v4 - WPF 4
Apr 17, 2013 at 12:32 PM
I've registered my application's views and view models with the IoC container (Castle Windsor) as "Transient", and applied this attribute to the VMs:
[RegionMemberLifetime(KeepAlive = false)]
In my application I can navigate between this view and another view. With a breakpoint in the constructor I can see that a new view & view model get instantiated each time I navigate to the view, but how can I be certain that they are getting freed up once I've navigated away?

I tried implementing IDisposable on the VM to see what happens, but Dispose() never gets called.
Apr 17, 2013 at 3:47 PM
Hi,
I went through some similar issues on this discussion:
https://compositewpf.codeplex.com/discussions/397222

Cheers