tags:

views:

35

answers:

1

as most wpf developers know, setting ScrollViewer.CanContentScroll to false will disable virtualization , but I'like to know how it works, because I try to enable virtualization while setting ScrollViewer.CanContentScroll is false .

A: 

"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 item-based scrolling so it can keep track of logical units (items) currently in view... Setting the ScrollViewer to pixel-based scrolling their is no more concept of logic units but only pixels!!!

rudigrobler