Odd Drag Behaviour WPF

8 posts, 0 answers
  1. Pat Tormey
    Pat Tormey avatar
    20 posts
    Member since:
    Feb 2010

    Posted 28 Mar 2011 Link to this post

    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..

  2. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 29 Mar 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Pat Tormey
    Pat Tormey avatar
    20 posts
    Member since:
    Feb 2010

    Posted 29 Mar 2011 Link to this post

    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
  5. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 31 Mar 2011 Link to this post

    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
  6. Pat Tormey
    Pat Tormey avatar
    20 posts
    Member since:
    Feb 2010

    Posted 21 Jun 2011 Link to this post

    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
  7. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 23 Jun 2011 Link to this post

    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
  8. Pat Tormey
    Pat Tormey avatar
    20 posts
    Member since:
    Feb 2010

    Posted 23 Jun 2011 Link to this post

    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

  9. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 23 Jun 2011 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready