I have added several elements to an ObservableCollection and now I want to modify one of them like:
_MyCollection[num].Data1 = someText;
As an example, according to code below, intention is: _MyCollection[5].Type = changedText;
_MyCollection.Add(new MyData
{
Boundary = Text1,
Type = Text2,
Option = Text3
});
How can I do that?
I guess you just want to see the changes right?
This has nothing to do with the ObservableCollection but with your
MyDataobject.It has to implement
INotifyPropertyChange– if you do, you will see the changes you made.