do you know how I can make a photo gallery like that default used by smartphone? For example in my project I add 10 images. I want to make 2 photo gallery, one by a topic, so for example I must put 5 photos in a photo gallery and other 5 photos in the second photo gallery (in several pages of project). I would like in these photo gallery, zoomable and scrollable images with touch. Can you write me a code example?
Answer: 1
You can use Silverlight Control Toolkit's gesture listener to capture Drag and Pinch from touch.
Define a CompositeTransformation for your image and set it's scale (on pinch) and Offset (in drag). When the image is not zoom, drag can trigger going to next image.
For further details see:
- http://stackoverflow.com/a/6474498/1150183.
- Creating Photo Gallery with Silverlight in Windows Phone 7.5
You can also try http://multitouch.codeplex.com/, if you want pinch zoom functionality.
by : Lambhttp://stackoverflow.com/users/1150183
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog