doesn't pan

5 posts, 1 answers
  1. Enrico
    Enrico avatar
    14 posts
    Member since:
    Mar 2011

    Posted 24 Sep 2014 Link to this post

    Hi,
    I'm using the PanAndZoomImage control, but unfortunately it just zooms but panning is not possible.
    My code:

    <slideView:PanAndZoomImage VerticalAlignment="Top"
                               Source="{Binding Current}"
                               Stretch="Uniform"
                               Zoom="{Binding CurrentZoom, Mode=TwoWay}"
                               ZoomMode="Free" FontFamily="Portable User Interface"
                               />

    I'm using it inside the DataTemplate of a RadSlideView.
    Any idea?

    Cheers,
    Enrico
  2. Answer
    Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 29 Sep 2014 Link to this post

    Hello Enrico,

    Thank you for contacting us.

    I have attached a sample project that demonstrates how you can use the PanAndZoomImage control inside a RadSlideView. After the image is zoomed, the panning works as expected. Please, take a look at the sample and let us know if you have further questions.

    I hope this helps.

    Regards,
    Rosy Topchiyska
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Enrico
    Enrico avatar
    14 posts
    Member since:
    Mar 2011

    Posted 29 Sep 2014 Link to this post

    Hi Rosy,
    thanks for your answer.
    I'll check out your sample project asap.

    Cheers,
    Enrico
  5. Enrico
    Enrico avatar
    14 posts
    Member since:
    Mar 2011

    Posted 29 Sep 2014 Link to this post

    Hi Rosy,

    my problem was, that I was mistakenly binding the Zoom property with a initial value of 0. In that case zooming works, but panning doesn't.
    If I set the initial value to 1 zooming and panning works nicely.

    Maybe it should be bug fixed inside the control, that a initial zoom binding value of 0 doesn't break the panning.

    Cheers,
    Enrico
  6. Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    551 posts

    Posted 02 Oct 2014 Link to this post

    Hello Enrico,

    Thank you for your suggestion. We will make the Zoom property coerce its value. I have added Telerik points to your account as a token of gratitude for bringing this matter to our attention.

    Regards,
    Rosy Topchiyska
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
DevCraft banner