Click here to Skip to main content
15,894,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Working on WPF Project, am just want to move an image from place to another specific place by hold click, just like Drag and Drop concept
Posted
Comments
ZurdoDev 29-Jan-14 21:43pm    
Where are you stuck? There are lots of samples online.
yassine.deeb 30-Jan-14 0:44am    
let's say you have to place holder, you need to drag the image from this hold place to and other place, such as CardsPlay as Solitaire !!
Tdmonkeypoop 30-Jan-14 9:42am    
Ok but what have you tried? Have you searched, a quick search brings up http://www.codeproject.com/Articles/16905/Drag-and-Drop-Image-in-C-NET . Does that help or are you looking for something different.

Like Ryan said where are you stuck?
yassine.deeb 30-Jan-14 12:00pm    
yes, i tried it, but i need to set rules on the place which i drop the image,as you must drop the image here, you cannot put this special image in any place !!
Tdmonkeypoop 30-Jan-14 12:16pm    
Depending on where you drop it there is always the ability to say bool isDropable; I mean if you are dropping it on an object or in an area you can make a map of location that is dropable, pass in the X,Y of the mouse on mouseUp, and then determine if it's in the right location.

Really though that might not work all depends on your application, but there are 2 ideas...

1 solution

Plenty of examples: drag-and-drop-an-image-in-wpf[^]
 
Share this answer
 

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