diff --git a/ImageListView/ImageListView.cs b/ImageListView/ImageListView.cs index bb2854a..25c9f7f 100644 --- a/ImageListView/ImageListView.cs +++ b/ImageListView/ImageListView.cs @@ -1107,6 +1107,8 @@ public void InvertSelection() /// public void SelectWhere(Func predicate) { + SuspendPaint(); + foreach (ImageListViewItem item in Items.Where(predicate)) item.mSelected = true; @@ -1120,6 +1122,8 @@ public void SelectWhere(Func predicate) /// public void UnselectWhere(Func predicate) { + SuspendPaint(); + foreach (ImageListViewItem item in Items.Where(predicate)) item.mSelected = false;