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
never gets called.