Skip to content

Commit

Permalink
Merge branch 'hotfix/#406' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Oct 8, 2021
2 parents c2fa96e + 97ab967 commit 004afea
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,7 @@ public static void SetSelectedItem(this ItemsControl itemsControl, object item2S

if (selectionMode != SelectionMode.Single)
{
var itemsToDeselect = listBox.SelectedItems.Cast<object>().Where(si => si != item2Select).ToArray();

foreach (var item in itemsToDeselect)
{
listBox.SelectedItems.Remove(item);
}
listBox.UnselectAll();
}

try
Expand Down

0 comments on commit 004afea

Please sign in to comment.