I am using List box for drag and drop functionality, and added below line and its method in xaml.cs file, and its working fine.
RadDragAndDropManager.AddDragQueryHandler(this, OnDragQuery);
RadDragAndDropManager.AddDragInfoHandler(this, OnDragInfo);
RadDragAndDropManager.AddDropQueryHandler(this, OnDropQuery);
RadDragAndDropManager.AddDropInfoHandler(this, OnDropInfo);
But, I am using MVVM model and would like to write this method on ViewModel. Kindly suggest me how can i convert this method as a ICommand so that I could able to write this method on ViewModel.
I have search lots of website and could not got any solution, so uses this platform.
Kindly help me,
Thanks and Regards,
Meehir Jha
5 Answers, 1 is accepted
You might what to check this blogpost explaining the idea how to use RadDragAndDropManager in MVVM scenario.
All the best,
Tsvyatko
the Telerik team
Hi Tsvyatko,
Thanks for the post on Drag and Drop functionality using MVVM model. This works perfectly on my machine, except the below scenario.
Dragging item from source list box and drop it to same (source) list box, it removes the item from the source list box and doesnt add it to anywhere.
Kindly help me.
Also has anyone have used with prism4.0. Can anyone share a sample?
Thnaks
Moshiur
Here is the new link:
http://blogs.telerik.com/silverlightteam/posts/10-12-15/using-commands-with-raddraganddropmanager-for-wpf-and-silverlight.aspx
Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I was evaluating if prism and telerik(if to buy telerik) fits together for our requirement. And seems like it does. Also quite impressed with the quick reply.
Thanks mate!
Moshiur