简体   繁体   中英

Drag and Drop in Windows Store Apps with touch

I'd like to drag an user-defined object from a ListView onto another control. Rights now it's working with the mouse, but not with touch. how does it work with touch?

Edit: the objects are in an observable collection, which is binded to the ListView

Thanks a lot guys!

So, the tough part about touch is that you have to "detach" the object by pulling it orthogonal (perpendicular) to the scrolling axis . What this means is, if it's a vertically scrolling list, you have to pull the item to the left or right to start dragging it. It should then act as intended.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM