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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top