Zoom on center

5 posts, 0 answers
  1. Arnoud
    Arnoud avatar
    1 posts
    Member since:
    Nov 2011

    Posted 21 Dec 2012 Link to this post

    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
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 24 Dec 2012 Link to this post

    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.
  3. DevCraft banner
  4. Vijay
    Vijay avatar
    29 posts
    Member since:
    Nov 2011

    Posted 29 Dec 2012 Link to this post

    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
  5. Tomasz
    Tomasz avatar
    2 posts
    Member since:
    Apr 2012

    Posted 09 Apr 2013 Link to this post

    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.
  6. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 11 Apr 2013 Link to this post

    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.
Back to Top
DevCraft banner