Hello,
i want to implement drag and drop on the record selector but mouse move is not fired when mouse button is down. See attached example.
kmb
Hello KarlMichael,
Thank you for your post. I have been looking into the sample you have sent. After some research I have made for you I can suggest to handle the PreviewMouseDown event instead of PreviewMouseMove event. The event fires and you can perform the drag/drop operations you want there. I have modified your sample with this functionality for you.
Please find the modified sample and feel free to let me know if you have any further questions on the matter.
Hihi ;-)
This is exactly what i do not want to do, i allready tried it this way but i had to remove the code again: Because handling mouse down this would mean that when the user clicks the record selector to select the record this will do a drag and drop operation on the same record which is a reserved command and must be distinguishable from selecting the record. I guess this is why the official drag and drop examples all use mouse move. Isn't there another solutition?
PS: As another workaround I was thinking about defining a record selector style which provides two different areas: one for dragging and one for selecting the record but this is not a very nice gui design and confusing for the user. Where is the mouse move event gone? There has to be a way to receive it (?!) Or have any other idea?