-1

I would like to set this in C# but I cannot access the property.

BigD
  • 1
  • `ScrollViewer.IsDeferredScrollingEnabled="True"` [#1,005 – Enabling Deferred Scrolling for Better Performance](http://wpf.2000things.com/tag/scrollviewer/) – Scott Solmer Nov 18 '14 at 20:31
  • That's an attached property. Use syntax like described [here](http://10rem.net/blog/2012/03/29/xaml-tip-setting-attached-properties-from-code). – Rohit Vats Nov 18 '14 at 20:34

1 Answers1

0

You can set this in C# by using its attached property

ScrollViewer.SetIsDeferredScrollingEnabled(DataGrid,false);
123 456 789 0
  • 10,565
  • 4
  • 43
  • 72