How to autoscroll on WPF datagrid

后端 未结 17 1010
甜味超标
甜味超标 2020-12-08 09:27

I think I am stupid. I searched now for 15 minutes, and found several different solutions for scrolling on datagrids, but none seems to work for me.

I am using WPF w

17条回答
  •  醉酒成梦
    2020-12-08 10:24

    listbox.Add(foo);
    listbox.SelectedIndex = count - 1;
    listbox.ScrollIntoView(listbox.SelectedItem);
    listbox.SelectedIndex = -1;
    

提交回复
热议问题