How to start out zoomed at x percent?

Nov 15, 2011 at 4:50 PM

Issue #1: I have damn near the same code as the WP7.1 example, and our image(just test image, will be Xaml in the end) is 800x2003, and when the thing initially loads it's 40 pixels or so wide. And when you give the image an actual Width/Height it doesn't show up at all, no idea where it even is.

Issue #2: Another issue when you pinch and zoom it more and more, you can only pan it so far. When I zoom in so the image is 400px wide or so the top 80px is inpannable, can't get to it. And the more you zoom the more stuff at the top and bottom you can't drag to.

Nov 26, 2011 at 5:53 PM

Hi Harlequin,

at the moment the only method to control the image dimensions is by using the .Move() method of the Behavior: check out the code behind (C#) of the sample project for an example.

For Issue #2 check out the "IsConstrainedToParentBounds" property.