RadDragAndDropManager with LayoutTransformer

4 posts, 0 answers
  1. Kevin
    Kevin avatar
    30 posts
    Member since:
    Jul 2012

    Posted 15 Apr 2011 Link to this post

    I am using RadDragAndDropManager to drag items from a RadPanelBar to an ItemsControl that has a canvas set as it's ItemsPanel.

    The ItemsControl that I am dragging on to is inside of a LayoutTransformer control from the Silverlight toolkit, that has a scale applied to it.  I am using it to have a zoom functionality on the canvas.

    The issue is that the RadDragAndDropManager does not seem to realize when the LayoutTransformer has changed the size of the canvas.  For example, say I start with a canvas size of 100 x 100, then I zoom in to 200%.  The RadDragAndDropManager will not report a drop on anything outside of the original 100 x 100 size on the screen.

    Is there anyway to resolve this?
  2. Kevin
    Kevin avatar
    30 posts
    Member since:
    Jul 2012

    Posted 19 Apr 2011 Link to this post

    No love on this one?  Should I provide a code sample?
  3. DevCraft banner
  4. Tsvyatko
    Admin
    Tsvyatko avatar
    833 posts

    Posted 20 Apr 2011 Link to this post

    Hi Kevin,

     We have tried to reproduce this issue from our side, however, with no success. The drop functionality works  when the scale transform is applied before as well as during the drag operation. Please, check the attachment and let us know if there are some specifics in your scenario that are not included in sample project. If possible, could you please send us application that reproduces the problem (you can send project 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
  5. Kevin
    Kevin avatar
    30 posts
    Member since:
    Jul 2012

    Posted 20 Apr 2011 Link to this post

    After dismantling my project, I finally found the issue.  It seems that a DropShadowEffect on the destination element is what was throwing everything off.

    So basically, When using LayoutTransformer and RadDragDropManager, don't use a DropShadowEffect on your drop destination!

    Obscure, I know, but it took me several hours to figure it out!

    Thanks,
    KB
Back to Top