Forum Cross Platform with Xamarin

Drag and Drop labels in Xamarin Forms App

I have to develop a cross-platform app in Xamarin forms and its one of the requirements is to be able to drag and drop dynamically generated labels between different views on the same UI (i.e. check the image). The drag and drop should have a visual effect. I have generated the dynamic labels but I am not sure how to implement drag and drop functionality. Can anyone guide me regarding the best choice of controls here like the layouts (i.e. Grid, stack layout, absolute layout) containing the labels? Also, do I need to write separate code for implementing the drag and drop on Android and IoS? I will really appreciate if someone can point out the right resource. I have googled but there is not any useful tutorial. Some of the tutorials like this ListView DragDropSort are suggesting writing separate code for Android and IoS platforms.


Sign In or Register to comment.