why setting ScrollViewer.CanContentScroll to false disable virtualization
问题 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 . 回答1: "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