I can’t seem to figure this one out by reading the documentation for ObservableCollection.Move(int oldIndex, int newIndex) on MSDN:
oldIndex Type: System.Int32 The zero-based index specifying the
location of the item to be moved. newIndex Type: System.Int32 The
zero-based index specifying the new location of the item.
I don’t understand how it works. What happens to the item with newIndex? My assumption is that the index of each item with index >= newIndex is decremented. Is that assumption correct? And more importantly, is that behavior explained or described somewhere on MSDN?
Let me explain the behavior of
Movein a form of a unit test: