tell the difference between moving an item within an observablecollection and inserting an item
I have an ListboxDragDropTargetbound to an ObservableCollection
The user has two ways to interact - The items in the listbox can be reordered - Add a new item by dragging it in there from another listbox
I have not yet found a way to distinguish these two events in code as I wish to treat them differently (send a different command)
I tried:
- subscribing to the ObservableCollection.Collectionchan开发者_JAVA百科ged event - subscribing to the Drop vs ItemDroppedOnSource events of the ListboxDragDropTarget
精彩评论