Imagine I have a list of items:
- A
- B
- C
Now, from somewhere, the server tells my application that item B was deleted, but it only provides the whole new list, not the exact change data. Since WinRT ListView automatically updates the addition, removal and movement of items inside them, I would prefer not to update the support list and call Reset - INotifyCollectionChanged -event, as this animates every item that looks pretty dumb and rude. Instead, I want to calculate the steps needed to convert my local list to the list that I get from the server. (View as levenshtein distance, just not with the step count, but with the steps themselves)
e. g :.
1. Delete element B
2. Add new element D to position 3
How can I do it?
EDIT: matters in my case.
list c # diff array-difference inotifycollectionchanged
Moritz gunz
source share