I have a DragSource defined in a wpf Grid so that the entire contents of the grid is in the snapshot while dragging.
But I would like to have a button or some similar region in the grid to be the trigger for starting to drag so that it is more evident to the user and so that it is only initiated from a particular part of the grid. But I would still like the whole grid to be the snapshot that gets dragged, not just the button.
How can I do this?
Hello,
I would suggest making the button (or whatever you have chosen for a trigger) to be the DragSource and then use something like a custom drag template. You can have a look at this sample to get an idea how to achieve that behavior. If you need further assistance, you can write back to me!
Regards,
Stefana