why setting ScrollViewer.CanContentScroll to false disable virtualization

“ScrollViewer currently allows two scrolling modes: smooth pixel-by-pixel scrolling (CanContentScroll = false) or discrete item-by-item scrolling (CanContentScroll = true). Currently WPF supports UI virtualization only when scrolling by item. Pixel-based scrolling is also called “physical scrolling” and item-based scrolling is also called “logical scrolling”.”

Virtualization requires an item-based scrolling so it can keep track of logical units (items) currently in view… Setting the ScrollViewer to a pixel-based scrolling there is no more concept of logic units but only pixels!!!

Leave a Comment