I have a very simple ListView which binds to an ObservableCollection of strings. I can use the ‘ScrollBar.Scroll’ property to detect when someone clicks on the scroll bar and tugs it up or down, but how do you detect when they click the UP or DOWN buttons at the top and bottom of the ScrollBar? Clicking these does not seem to fire the Scroll event.
I’m sure it must be something straight-forward, but I’ve searched for about an hour without success.
TIA
Try this
private void listView_ScrollChanged(object sender, ScrollChangedEventArgs e)
{
listView.selectedIndex = Convert.Int16(e.VerticalOffset)
}