I have two apps, one winform and one WPF, which both use the same code.
On each I have a ListView control. I have a routine that increments the .SelectedIndex by 1 and performs work on the data for that line in the ListView then goes on to the next.
The ListView control in the WinForm app has its own vert scrollbar and as the program changes the .SelectedIndex the selected line is highlighted and kept visable in the ListView.
In the WPF the ListView does not have its own scrollbar and I have to use a Scrollviewer. This arrangement does not mimic the WinForm app. As the ListView items are selected they are highlighted only as long as they are visible on the ListView
box. Once the SelectedItem is beyond teh visable portion of the ListView Control the ScrollViewer does not scroll down to keep it visable.
How do I sink them together so that the SelectedItem is always visable just like the WinForm app????
View Complete Post