R – drag and drop in winforms or wpf

drag and dropwinformswpf

i would like to create a simple winforms or wpf application where i can drag and drop virtual "cards". this below is not exactly what i want to do, but it the closest thing that i found on the web to represent the user interface.

http://www.greenpeppersoftware.com/confluence/plugins/advanced/gallery-slideshow.action?imageNumber=1&pageId=24870977&decorator=popup&galleryTitle=Task+board+and+transitions

so basically i want to have columns in the GUI where i can drag and drag from one to the other.

My questions are:

  1. would this be easier in winforms or wpf
  2. where do i start?

Best Answer

In both winForms and WPF dragging and dropping can be done in a similar way by working with the events on the target DragOver and Drop.

However with WPF you have other options. You will also be able to make the application look better by having a thumbnail as you drag (this is possible in winforms but harder to achieve).

Have a look at this WPF sample it uses a helper class and think it does exactly what you need.

Related Topic