I have some code that changes the selected item in the Thumbnail ListView. (Users click on buttons and selected items move back and forth previewing the image in a BitmapViewer.)
Anyway, the problem starts if you try to combine using the buttons on the form and the arrow keys.
My code, when the button is clicked, simply gets the index of the currently selected item, increases it (provided it's not the last one) and calls:
myThumbnailList.Items[newIndex].Select = true;
This works fine until the user switches and starts using the arrow keys to change selection, at which point, the ThumbNailListview goes back to it's original selection - or the last one selected using the mouse or arrow keys, and scrolls from there.
Am I doing something wrong here?
A clue maybe, that when I programmatically change the selected item, the "SelectedItemsChanged" event does NOT fire.