0

Since GestureListener is deprecated, we are now left with three events namely ManipulationStarted, ManipulationDelta, ManipulationCompleted.

My custom listbox enables, swiping left and right on listbox items to do certain functions. How do I use the manipulation events to detect long press on a listboxitem? I want to implement the long press in such a way that the swipe left and right is not broken.

Any clue/idea would be of great help!

4

1 回答 1

2

Windows Phone 8 包含一个Hold事件。你可以起诉检测长按吗?

如果没有,您需要在操作事件中使用计时器来确定开始操作之间的时间长度以及操作点是否移动(触发增量事件),因此建议滑动手势或增量或完成事件未在您定义的时间内触发,那么您可以假设长按。

于 2013-09-17T13:59:39.167 回答