I am hoping to have a generic (extension) method which takes parent control and traverse through to its all children controls and unsubscribe their events if any.
problem i am closely looking at memory consumption when i create some wpf based form, memory spike which is expected considering the number of ui elements and their events but when form closes i expect to memory get release as in wpf, i m assuming form get disposed automatically disposed once closed so GC should clean up and release the memory... but thats what not happening as i waited few minutes and looked on private memory usage in diagnostic tools, that remains same. so i m wondering its not completely disposing/unsubscribing events etc