why setting ScrollViewer.CanContentScroll to false disable virtualization

Viewed 26961

As most WPF developers know, setting ScrollViewer.CanContentScroll to false will disable virtualization; but I'd like to know how it works, because I try to enable virtualization while setting ScrollViewer.CanContentScroll to false.

3 Answers

You can restore the virtualization with VirtualizingPanel.ScrollUnit="Pixel" (in .NET >= 4.5).

Related