In my application, I have a ListBox with items. The application is written in WPF.
ListBox
How can I scroll automatically to the last added item? I want the
listBox.ScrollIntoView(listBox.Items[listBox.Items.Count - 1]);