Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2395
Record Virtualization and Grid Resize
posted

We have a bit of code that tells us how many elements are in the visual tree of a window. To test the virtualization of our XamDataGrid implementations, I'll add enough data to a grid so that the scrollbar appears, check the number of visual elements, then vertically expand the grid so that more elements are visible. This works as expected.

What I've found, though, is that after enlarging the window, if I shrink it so that fewer records are displayed in the grid, the number of elements in the visual tree never goes down. It's as if the elements that were created by resizing the window are not destroyed. Does this have to do with having REcordContainerGenerationMode set to Recycle instead of Virtualize, and is this behavior expected?

Thanks.

Parents
No Data
Reply Children
No Data