No Pan No Zoom

10 posts, 0 answers
  1. bento
    bento avatar
    35 posts
    Member since:
    Aug 2013

    Posted 27 Sep 2013 Link to this post

    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;
            }
        }
    }
  2. MasterChiefMasterChef
    MasterChiefMasterChef avatar
    152 posts
    Member since:
    Jan 2013

    Posted 30 Sep 2013 Link to this post

    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
  3. DevCraft banner
  4. bento
    bento avatar
    35 posts
    Member since:
    Aug 2013

    Posted 30 Sep 2013 Link to this post

    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.
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 01 Oct 2013 Link to this post

    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.
  6. bento
    bento avatar
    35 posts
    Member since:
    Aug 2013

    Posted 01 Oct 2013 Link to this post

    Hi Deyan,

    I share the link... ZoomPan.zip 

    Device : Lumie 920, Amber.
  7. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 04 Oct 2013 Link to this post

    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.
  8. Tero
    Tero avatar
    2 posts
    Member since:
    Nov 2012

    Posted 10 Jan 2014 Link to this post


    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.

  9. Ivo
    Admin
    Ivo avatar
    90 posts

    Posted 10 Jan 2014 Link to this post

    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.
  10. Tero
    Tero avatar
    2 posts
    Member since:
    Nov 2012

    Posted 10 Jan 2014 Link to this post


    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.





  11. Todor
    Admin
    Todor avatar
    778 posts

    Posted 15 Jan 2014 Link to this post

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