PS: I have the lastest graphics card drivers and Perforator says WPF is using "Hardware render target"
As per your advice, I have tried the following code:
dataGrid.IsSynchronizedWithCurrentItem = true;
However, it does not make any observable difference. I think "dataGrid.EnableRowVirtualization =
true;" had the same effect.
This is curious - disabling the virtualization does not have any significant effect either. It does have significant effect on the loading speed, but the scrolling speed is still same (pretty bad).
I am confused. Why is scrolling so slow even when virtualization is off? Does WPF have to create/measure/arrange cells even when virtualization is off?
I know that it is probably not your fault, but just a result of WPF design, but could someone please try to explain to me why is the scrolling so slow? WPF is using DirectX under the covers, right? So rendering speed should be prety fast.
And just scrolling should not be causing any expensive layout changes.