WPF ListBox Scroll to end automatically

后端 未结 9 804
耶瑟儿~
耶瑟儿~ 2020-12-13 08:25

In my application, I have a ListBox with items. The application is written in WPF.

How can I scroll automatically to the last added item? I want the

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 09:03

    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

提交回复
热议问题