Hi,
I have been trying to implement drag and drop from a treeview to a gridview using DragDropManager. It looks like I got it to working, with a drag cue created from a datatemplate defined in treeview resources in DragInitialize event fired by the treeview. What I would like to do, is to change the dragcue when the mouse enters inside the borders of the gridview, and switch it back when it leaves the gridview borders.
I went through the BugTracker demo source, and this concept has been done by creating a template, and controlling the image path and other textblocks with a binding property. Is this the only way to accomplish this? Is it possible to define two different datatemplates and select the appropriate one in the DragEnter and DragLeave event of the gridview?
Can someone please clarify? A small sample code would help a lot.
Thanks.
I have been trying to implement drag and drop from a treeview to a gridview using DragDropManager. It looks like I got it to working, with a drag cue created from a datatemplate defined in treeview resources in DragInitialize event fired by the treeview. What I would like to do, is to change the dragcue when the mouse enters inside the borders of the gridview, and switch it back when it leaves the gridview borders.
I went through the BugTracker demo source, and this concept has been done by creating a template, and controlling the image path and other textblocks with a binding property. Is this the only way to accomplish this? Is it possible to define two different datatemplates and select the appropriate one in the DragEnter and DragLeave event of the gridview?
Can someone please clarify? A small sample code would help a lot.
Thanks.