Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Start drag of parent on button or region click
posted

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?

  • 1095
    Offline posted

    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