There is a listbox and you need to load, say, 1000 values. If I load in DataGrid or DataView, then everything is loaded instantly and does not "lag". And when I load from the database to the ListBox, I have at best a second delay while it unloads everything into memory. As far as I understand, in the list box, he immediately unloads everything into memory [although with current processors it is not a problem, in short, he does something else that loads the program], and in the grid, only the visible area plus a little more.
In the book of Matthew Macdonald on WPF 4.0 it is written about virtualization and after that the listbox works fine. In general, I did it, but I still have the same problem. Can someone come across this?