when i remove an item from dataCollection using RemoveAt(index) it's removed, but when i try to remove another item in the list the item is not removed i do have a listBox that has ListBoxElementsin it and the data is set to it using datacollection binding ..... so when i need to remove an item i remove it from the datacollection and the view is refreshed automatically, but when i try to remove another item after it, the view still the same and the item is not removed

DataCollection2.RemoveAt(index);

没有正确的解决方案

其他提示

When using binding, make sure you call the OnPropertyChange event, passing it the name of the changed property (in your case, "DataCollection2").

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top