Click here to Skip to main content
11,708,905 members (74,246 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Drag drop
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
Posted 12-Sep-12 6:37am
Wes Aday at 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 at 12-Sep-12 14:18pm
direct_acess at 13-Sep-12 10:17am
The environment That I'm using is C# ;)
Sergey Alexandrovich Kryukov at 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 at 21-Sep-12 9:32am
Sorry... WPF

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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[^]
Sergey Alexandrovich Kryukov at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 319
1 Maciej Los 235
2 Mika Wendelius 170
3 OriginalGriff 163
4 Peter Leow 139
0 OriginalGriff 9,253
1 Sergey Alexandrovich Kryukov 8,562
2 CPallini 5,189
3 Maciej Los 4,966
4 Mika Wendelius 3,856

Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 12 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100