Changing drag image

2 posts, 0 answers
  1. Greg
    Greg avatar
    14 posts
    Member since:
    Jun 2008

    Posted 13 Jul 2009 Link to this post

    Hello,
        Currently on the DragQueryEvent, I am setting the DragCue to just a plain TextBlock.  Once the user moves the mouse over a valid item to drop onto, I want the DragQue to change.  I have tried changing the DragCue in the DragInfoEvent, DropQueryEvent, and

    the DropInfoEvent events.  However, visuals are not updated.

    Suggestions?

    Thanks,
    Greg

  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 13 Jul 2009 Link to this post

    Hello Greg,

    Yes, indeed the visual is not updated. This is a know limitation which has very easy workaround:

    Set the DragCue to a ContentControl and change its Content instead of setting a new DragCue.

    Another idea is to use a ContentControl and set its content to the Payload and its ContentTemplate to a suitable DataTemplate that will display the currently dragged items and any text you like (which could possibly be bound to a property of the payload).

    Hopefully this will work for you,

    Regards,
    Miroslav
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
Back to Top