This is a migrated thread and some comments may be shown as answers.

Odd Drag Behaviour WPF

7 Answers 64 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Pat Tormey
Top achievements
Rank 1
Pat Tormey asked on 28 Mar 2011, 09:39 PM
When I drag between two list boxes the mouse location and the start of the cue arrow (with the Icon) is offset a couple of inches down and to the right and it seems to offset the target location too..
2011 Q1 version. Vanilla DragTemplate 

 

 

<DataTemplate

x:Key="DragTemplate">

<Image Source="{Binding IconPath}" Stretch="None" VerticalAlignment ="Top" />  

 

</DataTemplate>

Thoughts?

 

 

I'll add a screen shot if I figure out how to do that..

7 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 29 Mar 2011, 09:53 AM
Hello Pat Tormey,

 Would it be possible to send us screenshot or video that demonstrate this issue (you can use jing for this). Also please share if there are any specifics regarding your scenario.

Regards,
Tsvyatko
the Telerik team
0
Pat Tormey
Top achievements
Rank 1
answered on 29 Mar 2011, 12:00 PM
I'm not sure what caused the anomoly or were it went, but it's gone now, I first noticed it when I updated to 2011 Q1 and it remained thru several reboots. It disappeared (it seems) when I told the UserControl it was in to resize FILL instead of manually setting it.. but I cannot be sure that did it.

The Link to the marked up image is at http://cid-9ac665225a248ec4.photos.live.com/self.aspx/Telerik/OddDragDropDehavior.png?sa=955583036 I Makked up where the mouse was and accented where the cue start is..

Thanks
Pat Tormey NH USA
0
Tsvyatko
Telerik team
answered on 31 Mar 2011, 12:24 PM
Hello Pat Tormey,

 Indeed, setting horizontal/vertical alignment might be the problem. Drag and Drop mechanism uses parent control's adorner layer to visualize the arrow cue. As a result there might be situation in which the adorner is dislocated and as a result the arrow cue appears on wrong position. We are constantly working on improvements in this area - however, there are still some rare cases in which this might occurs.

Best wishes,
Tsvyatko
the Telerik team
0
Pat Tormey
Top achievements
Rank 1
answered on 21 Jun 2011, 02:08 PM
The start of the cue is still an issue and needs to be elevated to make sure it is fixed.

I put a video here http://www.screencast.com/t/laBFoKWlhW to document the problem.
Pat Tormey NH USA
0
Tsvyatko
Telerik team
answered on 23 Jun 2011, 07:58 AM
Hello Pat Tormey,

 Would it be possible to send us sample project demonstrating this issue as we might suggest workaround for it ( the position of Drag cue can be altered by using RadDragAndDropManager.DragCueOffset, the Arrow position can be altered by e.Options.ArrowCue.RenderTransform). You can attach projects by opening support ticket.

Regards,
Tsvyatko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Pat Tormey
Top achievements
Rank 1
answered on 23 Jun 2011, 12:10 PM
Unfortunately the data is medical records..
I was able to clear the issue once again by making sure no container control in the tree used autosizing or was an autosizing control by nature ( ViewBox for example). However I did note the it was not fixed until I changed the rootlayout to a canvas from viewbox. I suspect that that's were the cue get it's position.

If you are not able to reproduce the issue let me know and I'll take a shot at a simplified version but I've already got a lot of un-billable time due to drag and drop as it is...

You guys make a great product.. you literally make me look good,

Thanks

0
Tsvyatko
Telerik team
answered on 23 Jun 2011, 01:16 PM
Hi Pat Tormey,

 Thank you for sharing  this information. We had found out that RadDragAndDropManager has some issues when dragged from Viewbox. Currently, if this application is full trust I can suggest to enable native drag mode which will resolve this issue. Please check this help article how to achieve this - http://www.telerik.com/help/wpf/raddraganddrop-enable-dragging-between-windows.html

Let us know if this resolves the issue.

Regards,
Tsvyatko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
DragAndDrop
Asked by
Pat Tormey
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Pat Tormey
Top achievements
Rank 1
Share this question
or