Tag Archive | "GestureRecognizer"

Tags: , , , , , , , , , , , , , ,

How to use the MSDN managed code gesture wrapper in a Windows Mobile 6.5 device project

Posted on 02 October 2009 by Alexander Viken

Here´s a short how-to for getting started with gestures in your Windows Mobile applications. First how you set up your device project, and then i explain how it works using the managed gesture wrapper from MSDN.

First of all you need to consider if you would like to do it the “hardcore” way? by doing all the P/Invoke native calls yourself (then this documentation on MSDN is really useful) or if you just want to get gestures working and use the managed wrapper available in the MSDN code library, - You can also find the source code for the  wrapper there if you later need to find out how it really works. I haven´t  investigated the wrapper library yet, so I am not sure if it  encapsulates all the native functionality that is available.

First of all; Start Visual Studio 2008 and create a new device application solution. There is no specific Windows Mobile 6.5 application template so you just choose a Windows Mobile 6 project. Next you need to do is to add a reference to Microsoft.WindowsMobile.Gestures.dll (assuming now that you have downloaded the dll file) in your WYSIWYG in VS08.

  1. Visual Studio 2008 toolboxRight click on the General tab in the toolbox and select “choose items…”
  2. In the “Choose toolbox items” dialog select the browse button in the “.NET Framework Components” tab
  3. Browse to where you extracted the Gestures dll file and select it.
  4. A component called “GestureRecognizer” has it´s checkbox checked and selected.  Click the OK button.
  5. Continue Reading

Comments (0)

About the author, Alexander Viken
Working as Chief Mobility Consultant at Creuna Norway. I received MSFT MVP for Device Application Development in June 2010 and are interested in mobility trends, the market, technology, software development for Windows Phone, iOS and Android mostly, but not exclusively. Scrum master that fights to keep it lean.
Advertise Here

Me on Twitter