Another Thing about WPF Virtualization
Just a little follow-up to my virtualization post from the other day. WPF virtualization works great. I had it working horizontally and vertically at the same time and with synchronized scrolling controls.
To do horizontal and vertical, just make a vertical items list and for each item, make it a horizontal list. Works straight out of the box.
Make sure your virtualized control isn’t wrapped in a scrollbar. Even if its 3 controls outside, if a scrollbar is giving unlimited space to an ItemsControl you want to virtualize, it won’t work. A virtualizing control needs to be width (or height for vertical) constrained. I’d also bet that virtualization in a Canvas without setting a width on your ItemsControl would fail for the same reason, it just goes on and on.
No comments yet.