Implement Flick Gesture via GestureService from Windows Phone 8

前端 未结 4 1839
-上瘾入骨i
-上瘾入骨i 2020-12-22 10:53

I\'m working on a Windows Phone 8 app. This app will allow a user to flick a panel up. I want this to work very similarly to the way the lock screen works. When the user \'f

4条回答
  •  悲哀的现实
    2020-12-22 11:29

    Unfortunately this isn't as trivial as a couple of lines of code on SO since you have to account for the pan while you are holding down the screen and the flick which needs to seamlessly continue on from the pan when the user lifts their finger. A great example of this is actually a darts game since you want the dart to move while you are dragging and then fly off when you release (the flick).

    You can find a great example with source code at http://windowsphone7developerguide.blograby.com/darts-gesture-listener-flick-gesture/

提交回复
热议问题