title: ListBox: How to deselect/unselect item selected once the maximum limit has been met?
body: <p>I am using manual limit of ListBox selected items to 5.</p>
  
  <p>I tried different approaches including some solution applied in some other related issue but still can't make it.</p>
  
  <p>I already tried: <strong><a href="https://stackoverflow.com/questions/6050886/wpf-listbox-how-to-limit-maximum-of-selected-items-to-2">this</a></strong> but I cannot follow using "...attach onto the SelectionChanged event". I mean how to do that?</p>
  
  <p><strong><a href="https://stackoverflow.com/questions/947285/deselection-on-a-wpf-listbox-with-extended-selection-mode">this</a></strong> :but it clears all the selected items leaving no selected items.</p>
  
  <p>and even setting the .SelectedIndex to -1 or null and the same thing happened. It deselected every selected items.</p>
  
  <p>etc...</p>
  
  <p><strong>All I want to do is just to deselect(hope this make sense) the last selected item once the limitation is met.</strong></p>
  
  <p>Or worst solution : Can I disable my ListBox but still displaying the selected items(meaning still highlighted)?</p>
  
  <p>I tried most if in the <strong>SelectionChanged</strong> and some on <strong>Mouse_Down</strong> Event </p>