I have a list of items in ListView and I need something like AfterSelectionChanged event. Now I am subscribed to ItemSelectionChanged but it is triggered N times if I press Ctrl+A in list with N items. But I need to be notified only one time after all items would be selected.
Thanks.
You can make your own by delaying a method call until all the ItemSelectionChanged events stopped firing. Which is very cleanly done by Control.BeginInvoke(). Make it look similar to this:
You can use a bool flag instead of the List<> if you don’t need to keep track of which items changed.