Click here to Skip to main content
15,742,619 members
Please Sign up or sign in to vote.
1.11/5 (2 votes)
See more:
Hi there...

Just wanted to question if anyone of you know a way to drag and drop items (like buttons) from a stackpanel to another container type (could be a stackpanel too).
Ty for the help
[no name] 12-Sep-12 12:40pm    
"way to drag and drop items ", I do not know about you but I use my mouse to drag and drop item within a drag and drop enabled application.
Sergey Alexandrovich Kryukov 12-Sep-12 14:18pm    
direct_acess 13-Sep-12 10:17am    
The environment That I'm using is C# ;)
Sergey Alexandrovich Kryukov 13-Sep-12 12:19pm    
No need to tell that: it was in your tags in first place. What you have to tag is the UI library of application type you are using (WPF? Forms? ASP.NET? Silverlight? Metro? what?)
direct_acess 21-Sep-12 9:32am    
Sorry... WPF

1 solution

You did not specify the environment. If you want to work with wpf, then can look at the following: Drag and drop user controls in wpf[^]
Share this answer
Sergey Alexandrovich Kryukov 13-Sep-12 12:26pm    
You are right. So, this post may or may not be relevant.

I would like we practiced not answering until OP specifies the detail enough to avoid providing excessive information. For example, drag-and-drop can be applicable to WPF, Forms, Silverlight, ASP.NET, Metro, Windows Phone, and even, say, Android or Cocoa for Mac OS X and iOS (which can be developed with C# using Mono + MonobjC), so, should we bring all the solutions? The only right thing is to wait until OP clarifies that; if not -- the question should better be removed -- there is too many of such questions.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900