c# - Autoscroll ListView in WPF using MVVM -
i try have list automatically scrolls end when adding new line. here simple mvvm example in want integrate : there button adds lines list when clicked. model code : public class student { public string lastname {get; set;} public string firstname {get; set;} public student(string lastname, string firstname) { this.lastname = lastname; this.firstname = firstname; } } public class studentsmodel: observablecollection<student> { private static object _threadlock = new object(); private static studentsmodel current = null; public static studentsmodel current { { lock (_threadlock) if (current == null) current = new studentsmodel(); return current; } } private studentsmodel() { (int = 1; <= 50; i++) { student astudent = new student("student " + i.tostring(), "student " + i.tostring()); a...