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

Changing drag image

1 Answer 63 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 13 Jul 2009, 03:10 PM
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

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 13 Jul 2009, 04:02 PM
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.
Tags
DragAndDrop
Asked by
Greg
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or