I have a ListView bound to an ObservableCollection;
Items in this list view can be reordered.
However, I have no idea how to detect when items have been reordered.
I can’t find any relevant ListView event. And the ObservableCollection’s CollectionChanged event is fired twice when an item is dragged (‘Add’ and ‘Remove’ events), so I don’t think it is possible to tell if an item was actually moved in the UI or if I programmatically added a new item.
Is there any way to detect when items have been reordered?
Thanks in advance.
It seems there ARE events for reordering lists: DragItemsStarting and Drop. However, the Drop event currently only works with
ObservableVector<object>http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/431cb3b4-0643-4a0e-8f1a-fc6e1e726ffb