Observable Collection replace item

前端 未结 1 824
自闭症患者
自闭症患者 2021-02-11 17:31

I have a ObservableCollection, I can add and remove item from the collection. But I can\'t replace an existing item in the collection. There is a way to replace an

1条回答
  •  北海茫月
    2021-02-11 17:35

    collection[someIndex] = newItem;
    

    0 讨论(0)
提交回复
热议问题