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?
Thank you for your post. After further researching your issue I can suggest to create a style for the DataRecordPresenter and there to define the Drag Source and the Drop Target. You can take a look at the following forum thread where this behavior is further described: http://es.infragistics.com/community/forums/p/78080/394282.aspx.
Please do not hesitate to let me know if you have any further questions on the matter.
Thank you for the feedback. Please do not hesitate to contact us if you have any questions.
Thank you! everything is fine with the answer!
I am just checking your progress on the issue. Please do not hesitate to let me know if you have any further questions on the matter.
I have logged this functionality as a new Product Idea directly to our product management team for you. Your reference number for this Product Idea is PI13030055.
If you would like to follow up on your Product Idea at a later point, you may contact Developer Support management via email. Please include the reference number of your Product Idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
The answer to your question is yes. You can drop an item dragged from an IG control onto another WPF control. In order to achieve this functionality you have to set the other control as DropTarget.
I see it has a very nice gui-presentation with the ig dragdrop manager. What is not so good is that the dragging is done from within the record. It is very tricky to trigger and i guess some users will get mad with this. ;-) I'd prefer dragging done in the record selector, this is a space where no gui needs to be displayed that may handle the mouse events by itself. It would really improve the usability of your controls, so i'd like to make a product idea.
One question i have before using the ig drag and drop framework: Is it possible to drop a item dragged from a ig control onto another wpf control? or can i only drop on ig-controls?