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
65
Drag tiles between different xamTilesControls
posted

Hello, In my project i have two xamTilesControls, I'm trying to enable dragging a tile from of them to the other, but when the dragged tile exits its own XamTilesControl, the icon changes to a "don't allow" kind of icon and i cant complete the action. 

I tried catching the DragEnter, and Drop events on the other control, but they are not called (actually, they are not called on any other control).

 

If I perform a "e.Cancel = true" on the TileDragging event of the source control, and then perform a regular "DragDrop.DoDragDrop" with my own custom data- I can get it to work, but then (of-course) the tile swapping and animation within the same XamTilesControl doesn't work. 

Can this be done? it's crucial for our application.

Thanks!

Parents
  • 4850
    Offline posted

    The only way to do it currently is to take over the drag operation entirely which has the downsides you describe.

    This capability sounds like something we should add to the control but I realize that doesn't help you now.

Reply Children