Memory leak with WPF & ItemsControl (VB.NET)
- by Matt H.
I have an ItemsControl that uses a DataTemplate to display properties in my customClass that implements INotifyPropertyChanged...
Pretty straightforward...
Some items in the DataTemplate use CommandBindings (such as buttons), and a few have some code-behind (yuck).
When I empty the ItemsControl and set all instances of customClass = Nothing ,…