Nitha Paul
Nitha Paul

Reputation: 1401

Drag and Drop of ListBox items

In my application I had two listboxes present in my same view. Is it possible to drag one listbox item and place the item on other listbox. I saw the functionality in iPhone. Can I achieve the same in my application? If the answer is yes how I can implement the functionality in WP7?

Upvotes: 1

Views: 1012

Answers (3)

Rakesh R Nair
Rakesh R Nair

Reputation: 1785

Try out my sample, I think this will solve your issue
https://skydrive.live.com/redir.aspx?cid=a883d6dbbdbf62f5&resid=A883D6DBBDBF62F5!107

Upvotes: 1

abhinav
abhinav

Reputation: 3217

I believe the tilt effect (on tiles) follows a similar concept. You can take the onmanipulationstarted event or the mouse left button down event, locate the point of touch and make the element follow the point of touch( one way would be to repeatedly change the x and y axes of the element), release the element at the mouseleftbuttonup event or manipulationcompleted event and run the logic on what to do with the element.

Hope this helps.

Upvotes: 1

yiyang
yiyang

Reputation: 41

I have seen this dragging item in listbox in an windows phone app called Pulse.

Basically, my thought is when touching or holding(depends on you decide how it triggers a drag action) happened in a listbox item, make its opacity to 0 or collapse its visibility, and render a picture for the item, then you can drag this picture (just looks like you drag the listboxitem) to wherever you want.

I don't know if you have seen the animation of ContextMenu in windows phone toolkit, but they just use this way to do the zoom effect

Upvotes: 0

Related Questions