Completed
Last Updated: 15 May 2014 10:55 by John
ADMIN
Yordanka
Created on: 07 Mar 2014 07:24
Category: DataForm
Type: Feature Request
2
Memory leak in DataFormComboBoxField
When RadDataForm is placed in a Window/RadWindow and there is a DataFormComboBoxField, if the combo value is changed, RadDataForm instance remains in the memory after the window is closed.
1 comment
John
Posted on: 15 Apr 2014 06:10
In more general terms, the problem here is that the DataFormComboBoxField subscribes to the ItemsSource CollectionChanged event without using the weak event pattern. It does not even unsubscribe if the ItemsSource changes.

Under the MVVM pattern this will naturally cause a memory leak if the view model has a longer lifetime than the view.