B
BobLaughland
Hi All,
I had trouble finding a good WPF group??
My question is to do with the WPF listview control.
I have a listview which is displaying logging. It is quite often
updated, and items are added to the top of the list as new log
messages are captured.
The trouble is when you scroll down part way through the list, and a
new item is added to the list it makes the list move. That is really
annoying if you have found what you want to look at part way through
the list, and it just keeps moving. Eventually the place you have
scrolled to will scroll right out of view.
The solution would be something like this,
1) A new item is about to be added to the list
2) Take note of the first item that is currently displayed
3) Add the new item
4) Scroll the list so that the previous first item is now the first
item again
I have not found anything in the listview class that sets / gets the
scroll position, or the first item displayed (this can be done using
TopItem in winforms).
http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.topitem.aspx
Any ideas?
I had trouble finding a good WPF group??
My question is to do with the WPF listview control.
I have a listview which is displaying logging. It is quite often
updated, and items are added to the top of the list as new log
messages are captured.
The trouble is when you scroll down part way through the list, and a
new item is added to the list it makes the list move. That is really
annoying if you have found what you want to look at part way through
the list, and it just keeps moving. Eventually the place you have
scrolled to will scroll right out of view.
The solution would be something like this,
1) A new item is about to be added to the list
2) Take note of the first item that is currently displayed
3) Add the new item
4) Scroll the list so that the previous first item is now the first
item again
I have not found anything in the listview class that sets / gets the
scroll position, or the first item displayed (this can be done using
TopItem in winforms).
http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.topitem.aspx
Any ideas?