开发者

tell the difference between moving an item within an observablecollection and inserting an item

开发者 https://www.devze.com 2023-03-14 22:50 出处:网络
I have an ListboxDragDropTargetbound to an ObservableCollection The user has two ways to interact - The items in the listbox can be reordered

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

精彩评论

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