ListBox Item Removal

后端 未结 5 1426
长发绾君心
长发绾君心 2021-01-14 19:15

I have a WPF window that manages sets of configurations and it allows users to edit a configuration set (edit button) and to remove a configuration set (remove button). The

5条回答
  •  囚心锁ツ
    2021-01-14 19:58

    This is because , you are modifying a collection while iterating over it.

    if you have binded item source of listbox than try to remove the items from the source

提交回复
热议问题