WPF ListBox - cannot get to scroll automatically to bottom

  • Thread starter Thread starter DeanB
  • Start date Start date
D

DeanB

Hi there,

I know this sounds simple, but how can you get a ListBox (in WPF) to
scroll down to the bottom, so that new items auto scroll the items
upwards? Something like setting a TopIndex, or a PutInView. Right now
I'm iserting at the top (insert position 0) so that it scrolls
downwards.

Thanks!

-Dean
 
DeanB said:
Hi there,

I know this sounds simple, but how can you get a ListBox (in WPF) to
scroll down to the bottom, so that new items auto scroll the items
upwards? Something like setting a TopIndex, or a PutInView. Right now
I'm iserting at the top (insert position 0) so that it scrolls
downwards.


Have you tried ListBox.ScrollIntoView()?

Also, for WPF related questions, you may want to try the WPF forums (e.g.
http://social.msdn.microsoft.com/forums/en-US/wpf/threads/)

Mark
 
Back
Top