Is it possible to change the selected ListBoxItem from Code-Behind in Windows Presentation Foundation?
It's a quite simple task really, I have a Next and Previous button and they represent the next and previous item in the ListBox. But, myListBox.items
are of course object represntations of what i stored in the ListBox.
So, how would one fetch the ListBoxItem to set the IsSelected property?