I have a app which has a large grid with a stack-panel and stack-viewer. Inside there are multiply grids which go down the page. Is it possible for the user to be able to drag and drop these grids so they are in a different location. They should be able to move the grid up or down a grid or multiply grids. Should there be a button in the top right corner of every grid which when the user holds down they can move that grid up or down in the stackpanel, stackviewer.
Thank you for any help :)
Trying using the hold event on the grid to define that an object is to be moved. (You could manipulate the background colour to show the grid can now be moved).
Then use the manipulation events for the grid to move the control around (Manipulation Delta and ManipulationCompleted). Manipulation delta will give you translation in both the X and Y domain. Use the Y translation to move the object up or down by the specified translation. ManipulationCompleted can then be used to define that the grid has finished being moved.
I.e
Any ManipulationDelta Event try This code
You could use the
DragStarted
andDragCompleted
events fromMicrosoft.Phone.Controls.GestureListener
which is available in the Phone Toolkit.Hope this link could help you: http://www.scottlogic.com/blog/2012/06/27/a-gesture-driven-windows-phone-todo-application-part-two-drag-re-ordering.html
Have a look at these too:
http://www.c-sharpcorner.com/uploadfile/9f8124/drag-guesture-in-windows-phone-7/
drag and drop in windows phone
Hope it helps!