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
No comments:
Post a Comment