Hi,
In the process of implementing a prism region adapter for the RadTabControl I think I've discovered some memory leaks.
My tab control uses the DisplayMemberPath property and it's ItemsSource is set to an ObservableCollection in my region adapter. The region adapter add/removes views to/from the ObservableCollection causing the tab control to create/remove RadTabItems.
Memory Leaks
1. When the tab control removes a RadTabItem it doesn't set its Content property to null.
2. When DisplayMemberPath is used the RadTabItem's DataContext is set to the view. When a RadTabItem is removed the DataContext is not set to null.
3. Tab control uses a TabWrapPanel which continues to hold a reference to a RadTabItem after it is removed.
So far I've been unable to work around 2 and 3. Any suggestions?
Thanks,
Joe
In the process of implementing a prism region adapter for the RadTabControl I think I've discovered some memory leaks.
My tab control uses the DisplayMemberPath property and it's ItemsSource is set to an ObservableCollection in my region adapter. The region adapter add/removes views to/from the ObservableCollection causing the tab control to create/remove RadTabItems.
Memory Leaks
1. When the tab control removes a RadTabItem it doesn't set its Content property to null.
2. When DisplayMemberPath is used the RadTabItem's DataContext is set to the view. When a RadTabItem is removed the DataContext is not set to null.
3. Tab control uses a TabWrapPanel which continues to hold a reference to a RadTabItem after it is removed.
So far I've been unable to work around 2 and 3. Any suggestions?
Thanks,
Joe