Constraining image translation/scaling

Jan 1, 2011 at 9:16 PM

Is it possible to constrain navigation/scaling, so that the image is always mostly on screen?

So far I've been able to use manipulation, but it is possible to manipulate the image right off the screen, or into a position where it's hard to get back. Can this behaviour imitatate wp7's or iphone's picture viewer experience? By this i mean you can only scroll so far, just past the edge of the image, and then it bounces you back. It also needs to take into effect scaling, as an image filling the screen when scaled up, can be off the screen when scaled back down.

Can those 2 issues be accounted for with the current code?

Jan 2, 2011 at 3:13 PM

Are you using the sample available in the version 0.6.2, solution "SilverlightWP7MultiTouch.sln"?

That examples (Silverlight and WP7) don't require additional libraries to be installed and contain basic constraints for scaling (using the properties "MinimumScale" and "MaximumScale") and translation in order to not reach a position outside the screen.