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
Try this:
lstBox.SelectedIndex = lstBox.Items.Count -1; lstBox.ScrollIntoView(lstBox.SelectedItem) ;
In your MainWindow, this will select and focus on last item on the list!