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

doesn't pan

4 Answers 33 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.
Enrico
Top achievements
Rank 1
Enrico asked on 24 Sep 2014, 10:08 AM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Rosy Topchiyska
Telerik team
answered on 29 Sep 2014, 08:29 AM
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.

 
0
Enrico
Top achievements
Rank 1
answered on 29 Sep 2014, 08:34 AM
Hi Rosy,
thanks for your answer.
I'll check out your sample project asap.

Cheers,
Enrico
0
Enrico
Top achievements
Rank 1
answered on 29 Sep 2014, 04:55 PM
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
0
Rosy Topchiyska
Telerik team
answered on 02 Oct 2014, 07:48 AM
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.

 
Tags
PanAndZoomImage
Asked by
Enrico
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Enrico
Top achievements
Rank 1
Share this question
or