This is a migrated thread and some comments may be shown as answers.

Zoom on center

4 Answers 71 Views
PanAndZoomImage
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Arnoud
Top achievements
Rank 1
Arnoud asked on 21 Dec 2012, 08:38 PM
Hi,

I noticed that with zooming, this control always zoom to the center of the image. Is it possible to zoom to the center of both fingers. For me that is a more natural result and doesn't require any corrections to find the right spot

Arnoud

4 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 24 Dec 2012, 08:01 AM
Hello Arnoud,

 What version of our library are you using? We have fixed this behavior and if you use the latest binaries you should observe the correct behavior (e.g. the zoom will be in the center of the gesture).

Please let us know how it goes after you download the latest binaries.

All the best,
Valentin.Stoychev
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Vijay
Top achievements
Rank 1
answered on 30 Dec 2012, 02:24 AM
Hello Arnoud,

I suggest you could try something as below


PanAndZoomImage obj_Zoom = new PanAndZoomImage();
 obj_Zoom.Source = new BitmapImage(new Uri("d0014511d1392b833cacffc6efe95ce6_XL.jpg", UriKind.Relative));
 obj_Zoom.ZoomMode = ImageZoomMode.Free;
 obj_Zoom.Pan = new Point(300, 200);
 obj_Zoom.MaximumZoom = new Point(5, 5);
 ContentPanel.Children.Add(obj_Zoom);


Thanks,
Vijay
0
Tomasz
Top achievements
Rank 1
answered on 09 Apr 2013, 01:02 PM
Hello,
I'm using Q1 2013 and I still have that issue. Please note that it is about WP7 control only, WP8 is fine.

It is quite urgent for me, so I would be grateful for help.

Thanks.
0
Victor
Telerik team
answered on 11 Apr 2013, 09:33 AM
Hi Tomasz,

Thanks for the feedback. PanAndZoom image has been updated for WP7 however, please keep in mind that there is a breaking change. The Zoom and MaximumZoom properties are of type double now, not Size. You will have to update your XAML that sets these properties otherwise you will get a XamlParseException during run-time. Since the zoom is now a double value, non-uniform scaling of images is no longer supported.

The changes will be included in the latest internal build which will be released today.

Greetings,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
PanAndZoomImage
Asked by
Arnoud
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Vijay
Top achievements
Rank 1
Tomasz
Top achievements
Rank 1
Victor
Telerik team
Share this question
or