문제

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