wpf - How to detect mouse release during drag-drop -


I have a custom WPF control that manages drag / drop I override the override so that the deleted object Do not accept if it is busy doing something else:

  Secure override zero on drag over (base); drag.vent; If (IBB) e. Epiphages = Draperprofferforms.No; Other E. Effects = drag effects. ahead; E.Handled = True; }   

In another control that introduces drag and drop, there are some UI elements that are inactive when the operation is started and if the operation is canceled or when the mouse is released Should be enabled if done. On the target while the above mentioned goal says that the operation is not allowed

What incidents can I use on source control to examine the second condition?

, to check that the operation was canceled, you can use .

None: The drop target does not accept data.

Copy: The data has been copied over to the drop target.

Moves the data from the drag source to the drop target.

Link: The data drop from the drag source is linked to the target.

Scroll: Scrolling is about to start or is currently in the drop target.

All: The data has been copied, the drag has been removed from the source, and the scroll has been scrolled in the target.

None is not a value you are interested in. When the mouse is released, the operation will be canceled, and DoDragDrop () will not return any . >

Comments