I have a list with images. I want to select and deselect all images in this list at once

I have a list with images. I want to select and deselect all images in this list at once. For this I use radio lenses. one radio button is used to select all images in the list, and the other radio button is to deselect all images in the list. Can anyone plz help.

Thanks in advance.

0


a source to share


1 answer


I think you are after listBox.SelectAll (); and listBox.SelectedItems.Clear ();



It's a different story if you are using data binding and are not actually referencing your listBox in your code, but from your question, I am assuming that you are not.

+1


a source







All Articles