When I use a TextBlockStyle on a TextColumn the XamGrid is never garbage collected.
I've added a test project. If you run it and click on Remove datagrid, the datagrid is not garbage collected. If you remove the TextBlockStyle on the textColumn and run it again the datagrid is garbage collected after the click on Remove datagrid.
The datagrid is being kept in memory as follows:
This also happens with other styles (f.e. the ExpansionIndicatorSettings Style.)
Hi,
I only said "should be fixed" b/c i like to be cautious. We found an underlying issue in Silverlight which is causing the memory leak. And although I think we have a way to workaround this, it needs to be throughly tested to make sure it won't destabilize anything else.
As for your e-mail, i'll forward this to our Support department and have them update your e-mail.
-SteveZ
We have hunderd's of screens, so those workarounds would take a lot of time.
So I'd rather wait for the next SR. You say 'should be fixed', when do you know if it will be fixed. And do you have any idea when that next SR will be released?
Another thing, I have changed the e-mail adress in my profile, but the e-mails for this support case are still send to the old adress, can you fix that?
Jan-Paul
As Francis stated there is a bug here. That should be fixed in the next SR.
However i just wanted to let you know you can workaround it in a few ways.
1. Keep the style local to the xamGrid. <ig:TextColumn> <ig:TextColumn.TextBlockStyle> <Style /> </ig:TextColumn.TextBlockStyle> </ig:TextColumn>
2. Clear the properties you set before you remove the xamGrid.
3. Remove the style from your Resources collection when you remove the xamGrid.
Jan-Paul,
This issue has been logged with our developers with Issue ID 67724. I will give more details to you you via private support case.
Thanks,