WPF DataGrid 问题

WPF DataGrid 问题 1,WPF中, DataGrid是默认开启行虚拟化的,(EnableRowVirtualization="True"), 2,ScrollViewer.CanContentScroll默认为"True",当位true时,滑轮滚动是按照行的高度滚的,设置为false时,按像素滚,行虚拟化失效。 3,LayoutUpdated的Sender是空,无法操作。 4,开启行虚拟化,可以在UnloadingRow中把行的状态清空,在loadingrow的时候把行状态设置回去
原文地址:https://www.cnblogs.com/btbear/p/3337271.html