Imagine I have a list of items:
- A - B - C
Now from somewhere a server tells my application that element B
was removed, yet it only provides the entire new list, not the exact change details.
Since WinRT ListView
s automatically animate addition, removal, and movement of items inside them, I would prefer not to refresh the backing list and call a Reset-INotifyCollectionChanged
-event, since this animates every item looking rather blunt and rough.
Instead, I want to compute the steps that are needed to transform my local list into the list that I get from the server. (Kind of like a levenshtein distance, just not with the count of steps but the with steps themselves)
e. g.:
1. Delete element B 2. Add new element D to position 3
How would I do that?
EDIT: Order matters in my case.