rodriwasabi / gong-wpf-dragdrop

Automatically exported from code.google.com/p/gong-wpf-dragdrop
0 stars 1 forks source link

DragSource with extended selection #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Implement extended selection and IsDragSource on a ListBox

  <ListBox  ...
            SelectionMode="Extended"
            dd:DragDrop.IsDragSource="True" />

2. Select a least two items on the ListBox

3. On a selected item do a mouse click and release the mouse button.

What is the expected output? What do you see instead?
I expect that only one item was selected.
Instead of these behavior the selection not change.

If you select all items, then you dont have chance to unselect all items.

The selection must change only on MouseUp, otherwise could not do multiple 
DragDrop.

What version of the product are you using? On what operating system?
 - Trunk r17. Windows xp sp3

Please provide any additional information below.

Original issue reported on code.google.com by eze1981@gmail.com on 5 Apr 2010 at 8:20

GoogleCodeExporter commented 8 years ago
Hello Grokys, here you have a patch for that issue.

Original comment by eze1981@gmail.com on 6 Apr 2010 at 11:06

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you, this is a known problem. I will review your patch shortly!

Original comment by gro...@gmail.com on 13 Apr 2010 at 11:22

GoogleCodeExporter commented 8 years ago
Sorry it tool so long, but your patch has now been committed to trunk with one 
small 
change (m_DragInfo can be null in DragSource_PreviewMouseLeftButtonUp when the 
user 
presses Esc to cancel the drag).

Thanks for your patch, this fixes a problem I couldn't work out how to solve, 
and 
solves it elegantly.

Original comment by gro...@gmail.com on 4 May 2010 at 4:39