I have made an application which displays Images .Now I want to implement zoom in and zoom out feature(by using two fingertip's) as in native windows phone photo viewer application.Any idea on how to proceed .
Thanks in Advance.
I have made an application which displays Images .Now I want to implement zoom in and zoom out feature(by using two fingertip's) as in native windows phone photo viewer application.Any idea on how to proceed .
Thanks in Advance.
if you want simple image viewer that supports multi-touch, I recommend you to use
WebBrowser
control to display image.It supports multi-touch zoom and smooth scrolling as well by default. But you must have to copy file to isolated storage from project folder. Here's how I've done:
※ You must set the Build Action of image file to Content
Check out Laurent Bugnion's multitouch sample - http://multitouch.codeplex.com/
Perhaps the most expedient approach would be to include the Silverlight for Windows Phone Toolkit. This contains a
GestureService
that will help with pinch and rotate touch gestures. You could apply it to an image like this:-Then in code-behind:-