Highlighting cells in WPF DataGrid when the bound value changes

前端 未结 3 834
自闭症患者
自闭症患者 2021-01-01 21:42

I have a DataGrid that has its data refreshed by a background process every 15 seconds. If any of the data changes, I want to run an animation that highlights the cell with

3条回答
  •  生来不讨喜
    2021-01-01 22:01

    I suggest to use OnPropertyChanged for every props in your viewmodel and update related UIElement (start animation or whatever), so your problem will solved (on load, sort, filter,...) and also users can saw which cell changed!

提交回复
热议问题