Friday, 20 January 2012

Building A Multi-Touch Photo Viewer Control for Windows Phone

Building A Multi-Touch Photo Viewer Control for Windows Phone

1/18/2012

source: sharpgis.net

If you want to view an image on your Windows Phone app, or on your Windows 8 tablet, most people would probably expect to be able to use their fingers to pinch zoom and drag using the touch screen.

Since this is a common scenario, I want to create a simple reusable control that allows me to do this using very little xaml, along the lines of this:

<my:ImageViewer
     Thumbnail="http://url.com/to/my/thumbnail.jpg"
     Image="http://url.com/to/my/MyImage.jpg"  />

.where Thumbnail is a low resolution image that loads fast, while the full resolution Image is being downloaded.

If you just want to use this control and don't want to learn how to create a custom control, skip to the bottom to download the source for both Windows Phone and Windows 8 Runtime.

First off, we'll create a new Windows Phone Class Library project and name it "SharpGIS.Controls". (or whatever you like)

Here's a preview off what that app looks like:

...Read more

You can also follow us on Twitter @winphonegeek

Comments

Source: http://feedproxy.google.com/~r/Windowsphonegeek/~3/9w4osKkV-8U/Building-A-Multi-Touch-Photo-Viewer-Control-for-Windows-Phone

jane lynch matt ryan matt ryan real housewives of new york mildred pierce cam newton emmy awards

No comments:

Post a Comment