Hi,
Our grid is using a Converter to determine the background color of the CellValuePresenter. The problem is that when setting RecordContainerGenerationMode="Recycle" we see some cells with a background color they should not have. The problem disappears if we don't use such mode. But we'd like to use it to improve our app's performance, otherwise the grid locks the UI up for a second when a adding a row to a collection that already contains ~2000 items.
Can you please advise?
Regards.
Hello,
Thank you for your post. I have been looking into it but since I cannot be completely sure how your data is organized and how you change the background of the CellValuePresenters, I am not able to conclude what can cause such behavior, so could you please send an isolated sample project, where the issue is reproduced, so I can investigate it further for you.
Looking forward for your reply.
We were using a MultiConverter to work out the background color.
Instead we've switched to properties in the ViewModel where we perform the same logic on a worker thread. This approach seems to work with the Recycle virtualization mode.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.