Proper cleanup of WPF user controls
问题 I am relatively new to WPF, and some things with it are quite foreign to me. For one, unlike Windows Forms, the WPF control hierarchy does not support IDisposable. In Windows Forms, if a user control used any managed resources, it was very easy to clean up the resources by overriding the Dispose method that every control implemented. In WPF, the story is not that simple. I have searched for this for several hours, and encountered two basic themes: The first theme is Microsoft clearly stating