<ListBox
x:Name="listBox"
SelectionChanged="listBox_SelectionChanged">
</ListBox>
void listBox_SelectionChanged(object sender, RoutedEventArgs e) {
// This method is only called when a selection is changed.
}
However, I need to call a function that executes even if the already selected item in the list box is clicked again (which would make it selected had it not already been).
I tried the Selected event handler but received this error in visual studio:
Error CS1061 'ListBox' does not contain a definition for 'Selected' and no accessible extension method 'Selected' accepting a first argument of type 'ListBox' could be found (are you missing a using directive or an assembly reference?)
Is there any other event I might be missing?
Thank you.