tags:

views:

234

answers:

1

Greetings, in my application i have a listbox with items. THe application is written in WPF. How to scroll automatically to the last added item? I want the scrollviewer to be moved to the end of the list when new item has been added. Is thare any event like "ItemsChanged"? (I don't want to use SelectionChanged event)

A: 

You could try ListBox.ScrollIntoView() method, although there are some problems in some cases...

Here is an example from Tamir Khason: Auto scroll ListBox in WPF

Anvaka