How do you replace a given index in an observableArray with another element.
I have:
ViewModel.Elements()[index]
how can i replace it with anot
Editing the underlying array and reassigning it did the trick for me. I had trouble with other approaches.
var underlyingArray = this.someObservableArray();
// Do modifications... Swap some items...
// No one is being notified just yet...
// Reassign to observable to update everything
this.someObservableArray(underlyingArray);