[Sample of June 4th] Support multi-touch in WPF


Homepage image
image RSS Feed

Sample Download: http://code.msdn.microsoft.com/windowsdesktop/CSWPF3DMultiTouch-17e457ba

This sample demonstrates how to use WPF 4's multi-touch events to manipulate a 3D scene. It renders an earth. You can use your fingers to rotate the earth in any directions (not only along the latitudes and the longitudes). You can also use the standard scale (zoom) gesture to scale the earth. If you happen to touch a circle that represents a Windows Azure data center, a notification message will be displayed on the window.

If you don't have a touch screen, you can use the mouse to simulate the behavior. In the sample code, you will discover that to implement multi-touch is actually simpler than to implement mouse events, thanks to the manipulation framework provided by WPF.


For detailed introduction of the sample, please read the documentation at http://code.msdn.microsoft.com/windowsdesktop/CSWPF3DMultiTouch-17e457ba

imageYou can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates. If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, or read the introduction on our homepage http://1code.codeplex.com/.

Comments (0)

Skip to main content