Implement Flick Gesture via GestureService from Windows Phone 8

前端 未结 4 1831
-上瘾入骨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/

    0 讨论(0)
  • 2020-12-22 11:34

    You dont need to use toolkit gesture listener anymore. You can use in built manipulation events. Here is the sample:- http://phone.codeplex.com/SourceControl/latest#PhoneToolkitSample8/Samples/GestureSample.xaml.cs

    0 讨论(0)
  • 2020-12-22 11:47

    If someone need to implement gestures in Windows Phone 8 - look at this https://github.com/PedroLamas/WPtoolkit/blob/master/PhoneToolkitSample8/Samples/GestureSample.xaml.cs

    0 讨论(0)
  • 2020-12-22 11:52

    Gesture Listener is deprecated in Windows Phone 8. When you download the latest toolkit source. It contains a sample toolkit app for window phone 8. When you click the gestures, it throws a dialog which says

    The GestureListener is now obsolete in windows phone 8, as the built in manipulation and gesture events now have functional parity with it. This sample and the sample code demonstrated how to use the manipulation and gesture events for purposes for which one previously would have used the GestureListener

    0 讨论(0)
提交回复
热议问题