Is there an easy way to detect shake motions on Windows Phone 8?

前端 未结 3 558
孤独总比滥情好
孤独总比滥情好 2020-12-19 17:09

I need to detect a shake movement on a Windows Phone 8 device, in order to launch a specific action. How can I do that ?

I found several mentions of a \"ShakeGesture

3条回答
  •  心在旅途
    2020-12-19 17:33

    1. Download ShakeGestureLibraryCS from Windows Phone Developer Samples: http://code.msdn.microsoft.com/wpapps/Shake-Gesture-Library-04c82d5f

    2. Download C# project and Build (for Release) to create the 'ShakeGestures.dll'

    3. Add Reference to your WindowsPhone project.

提交回复
热议问题