views:

2597

answers:

5

Now that I can make useful user controls in WPF (thanks to this stackoverflow answer) I want to be able to put numerous user controls on one page in two columns and enable the user to be able to move them around according to preference, dragging the ones they use the most to the top, etc.

Can anyone point me to code, tutorials, etc. which do this? I can imagine this has been made quite easy to do in WPF.

+3  A: 

Hey there,

Here is a blog post to get you started on drag drop functionality in WPF.

Have Fun.

Blounty
+3  A: 

There's also How can I drag and drop items between data bound ItemsControls? by Bea Stollnitz.

The article talks about a reusable set of adorners that enable drag-n-drop between controls.

It's somewhat advanced, but very useful.

Cameron MacFarland
A: 

I know this isn't exactly what you need but it might get you close!!!

Martin Grayson has a project on Codeplex called Blacklight... Check out the Drag dock Panel!!!

rudigrobler
+1  A: 

A series of blog posts that deal with Drag and Drop using attached properties.

Graeme Bradbury
A: 

I was looking for an easy way to accomplish this as well and came across the following web page: http://dotnetslackers.com/ADO%5FNET/re-191632%5FGeneric%5FWPF%5FDrag%5Fand%5FDrop%5FAdorner.aspx It looks like there are some nice features of this implementation.

Ben McIntosh