Click here to Skip to main content
11,797,355 members (77,969 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 CPallini 475
1 OriginalGriff 375
2 Maciej Los 370
3 Abhinav S 359
4 KrunalRohit 291
0 OriginalGriff 2,092
1 Maciej Los 1,760
2 KrunalRohit 1,436
3 CPallini 1,245
4 ppolymorphe 893

Advertise | Privacy | Mobile
Web04 | 2.8.151002.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