Hi,
In your MVVM binding example from the Demos you create tabs using data templates. If you add desrtructor for TabViewModel, it will not fire until application is closed, even if you call GC.Collect(). Why is this happening and what is holding the resources from being freed.
If you fo the same for the regular view, and close it, destructor for ViewModel will fire normally.
The example I am referring is called DataBinding, under TabControl.
Regards,
Goran
In your MVVM binding example from the Demos you create tabs using data templates. If you add desrtructor for TabViewModel, it will not fire until application is closed, even if you call GC.Collect(). Why is this happening and what is holding the resources from being freed.
If you fo the same for the regular view, and close it, destructor for ViewModel will fire normally.
The example I am referring is called DataBinding, under TabControl.
Regards,
Goran