I am using manual limit of ListBox selected items to 5.
I tried different approaches including some solution applied in some other related issue but still can't make it.
I already tried: this but I cannot follow using "...attach onto the SelectionChanged event". I mean how to do that?
this :but it clears all the selected items leaving no selected items.
and even setting the .SelectedIndex to -1 or null and the same thing happened. It deselected every selected items.
etc...
All I want to do is just to deselect(hope this make sense) the last selected item once the limitation is met.
Or worst solution : Can I disable my ListBox but still displaying the selected items(meaning still highlighted)?
I tried most if in the SelectionChanged and some on Mouse_Down Event