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

No Pan No Zoom

9 Answers 94 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.
bento
Top achievements
Rank 2
bento asked on 27 Sep 2013, 03:50 PM
Hi,

I follow and copy example to simple project but error on double tap, cannot pan, cannot zoom. Do you know why ? But when I set Pan="300,300" it can pan, I set Zoom=2, it can zoom. But when image fit screen, error happened.

<Grid x:Name="LayoutRoot"
      Background="Transparent">
    <Image Source="/Assets/AlignmentGrid.png"
           Width="300"
           Height="400"
           Tap="Image_Tap" />
    <telerikPrimitives:RadWindow IsFullScreen="True"
                                 x:Name="imageZoom">
        <telerikPrimitives:RadWindow.OpenAnimation>
            <telerikCore:RadScaleAnimation StartScaleX="0"
                                           StartScaleY="0"
                                           EndScaleX="1"
                                           EndScaleY="1" />
        </telerikPrimitives:RadWindow.OpenAnimation>
        <telerikPrimitives:RadWindow.CloseAnimation>
            <telerikCore:RadScaleAnimation StartScaleX="1"
                                           StartScaleY="1"
                                           EndScaleX="0"
                                           EndScaleY="0" />
        </telerikPrimitives:RadWindow.CloseAnimation>
        <Grid>
            <slideView:PanAndZoomImage ZoomMode="Free"
                                       x:Name="panZoom"
                                       Source="/Assets/AlignmentGrid.png"
                                       MaximumZoom="4" />
        </Grid>
    </telerikPrimitives:RadWindow>
</Grid>


using System;
using Microsoft.Phone.Controls;
namespace PanAndZoom
{
    public partial class RadSlideView : PhoneApplicationPage
    {
        public RadSlideView()
        {
            InitializeComponent();
        }
 
        private void Image_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            imageZoom.IsOpen = true;
        }
    }
}

9 Answers, 1 is accepted

Sort by
0
MasterChiefMasterChef
Top achievements
Rank 2
answered on 30 Sep 2013, 04:07 PM
Hi Bento,

I got your code running and couldn't replicate your issue. Are you running your example in a simulator or on a device? I am running mine on a device and the PanAndZoomImage is panning and zooming correctly. What exactly was the error you were receiving?

Master Chief
0
bento
Top achievements
Rank 2
answered on 30 Sep 2013, 04:37 PM
Hello Master,

Yes it is running well first. On Debug mode, double tap make an error and stop here

            if (Debugger.IsAttached)
            {
                // A navigation has failed; break into the debugger
                Debugger.Break();
            }

If running well first, no double tap i made, it cannot zoom or pan, unless i set zoom and pan with a value, for example Pan="300,300" and zoom=2. Debug on Lumia 920 OS Amber version. I tried again without debug, still same situation.
0
Deyan
Telerik team
answered on 01 Oct 2013, 08:33 AM
Hello Benyamin,

Thanks for writing.

Can you please send us the project you are reproducing this issue with in a ZIP archive so that we can investigate?

You will need to open a new support ticket to be able to do that.

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
bento
Top achievements
Rank 2
answered on 01 Oct 2013, 08:56 AM
Hi Deyan,

I share the link... ZoomPan.zip 

Device : Lumie 920, Amber.
0
Deyan
Telerik team
answered on 04 Oct 2013, 07:57 AM
Hello Benyamin,

Thanks for writing.

I would like to inform you that this issue is fixed in Q3 2013 Beta which has been recently released.

Let us know if you have additional questions.

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Tero
Top achievements
Rank 1
answered on 10 Jan 2014, 01:25 PM

Hi,

Just updated latest release version of Telerik WP 7 and
noticed that the Pan and Zoom bug is still there.

Maybe the fix was accidently left out from final release version ?

Forced to replace latest dlls with older ones and Pan and Zoom was working ok.

0
Ivo
Telerik team
answered on 10 Jan 2014, 02:58 PM
Hello,
Could you, please check the version of the dlls, you've downloaded?
The latest internal build for Windows Phone 7 contains assemblies with version 2013.3.1121.2040 and there the issue should be fixed.

Regards,
Ivo
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Tero
Top achievements
Rank 1
answered on 10 Jan 2014, 05:52 PM

Latest version is 2013.3.1127.2040.
This is what I got using Telerik Control Panel, no internal builds.
Dll file: date modified: 27.11.2013 4:04

Older version: 2013.3.1016.2040, dated 16.10.2013 11:28. This works ok.





0
Todor
Telerik team
answered on 15 Jan 2014, 09:21 AM
Hello Tero,

Your observations are correct.

The issue was fixed in our codebase for WP7, but it hasn't been released yet. This month we release Service Pack 2 where the fix is included.

Apologies for any inconvenience cased and for the misunderstanding.

Regards,
Todor
Telerik
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
bento
Top achievements
Rank 2
Answers by
MasterChiefMasterChef
Top achievements
Rank 2
bento
Top achievements
Rank 2
Deyan
Telerik team
Tero
Top achievements
Rank 1
Ivo
Telerik team
Todor
Telerik team
Share this question
or