开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜