PanAndZoomImage not zooming

22 posts, 1 answers
  1. Ben
    Ben avatar
    4 posts
    Member since:
    Apr 2011

    Posted 16 Feb 2012 Link to this post

    Hi,

    I've just upgraded to the 2012 Q1 release, and after fixing up my SlideView usage I think I've hit a bug. 

    I'm using the PanAndZoomImage for my items, and setting the Source property using a Binding Converter.  My ViewModel provides a reference to a file in isolated storage which the converter uses to load the image into a BitmapImage.  The image loads fine, however it does not respond to gestures, so I just get a static view of the image.  I've tested with a path to image content in my xap and it works fine, so I think it's an issue with how the binding is processed.

    Possibly related to this is the fact that the busy indicator stays open permanently, I've had to hide it with a style.

    Markup example is as follows:
    <telerikPrimitives:RadSlideView SelectedItem="{Binding SelectedItem}"
                                    IsLoopingEnabled="False"
                                    ItemsSource="{Binding Images}">
        <telerikPrimitives:RadSlideView.ItemTemplate>
            <DataTemplate>
                <telerikSlideView:PanAndZoomImage ZoomMode="Free"
                                                  MaximumZoom="10,10"
                                                  Source="{Binding Converter={StaticResource FullViewConverter}}">
                    <telerikSlideView:PanAndZoomImage.BusyIndicatorStyle>
                        <Style TargetType="telerikPrimitives:RadBusyIndicator">
                            <Setter Property="Visibility" Value="Collapsed" />
                        </Style>
                    </telerikSlideView:PanAndZoomImage.BusyIndicatorStyle>
                </telerikSlideView:PanAndZoomImage>
            </DataTemplate>
        </telerikPrimitives:RadSlideView.ItemTemplate>
    </telerikPrimitives:RadSlideView>

    Can anyone confirm this bug?  If so it would be good to get some thoughts on a workaround until a fix can be released, there are some good features in the new release I'd like to use elsewhere :)

    Thanks,
    Ben
  2. Georgi
    Admin
    Georgi avatar
    296 posts

    Posted 20 Feb 2012 Link to this post

    Hi Ben,

    Thank you for contacting us.

    I confirm that this is a bug with our PanAndZoomImage component. The control relies on receiving the ImageOpened event to update its state which however will never happen when the direct stream of the image is passed. That is why the busy indicator never stops and the control does not handle manipulation events.

    We will do our best to fix this problem with an internal build by tomorrow. I will notify you when the build is available for you to download.

    I would like to thank you for bringing our attention to this issue - I have added 1000 Telerik points to your account for your time and feedback.

    Greetings,
    Georgi
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
  4. Ben
    Ben avatar
    4 posts
    Member since:
    Apr 2011

    Posted 20 Feb 2012 Link to this post

    Great, thanks for the feedback :)

    Cheers,
    Ben
  5. David
    David avatar
    11 posts
    Member since:
    Oct 2012

    Posted 21 Feb 2012 Link to this post

    Thanks, I was experiencing the same issue when using a cached image (as the ImageOpened event never fired). Will be great once the update is available.
  6. Georgi
    Admin
    Georgi avatar
    296 posts

    Posted 21 Feb 2012 Link to this post

    Hi guys,

    I am happy to inform you that an internal build where this issue is fixed, is available for you to download from your accounts. The build version should be

    RadControls_for_WindowsPhone_2012_1_0221_DEV_hotfix

    Let me know if you find some issues with the build.

    All the best,
    Georgi
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  7. Ben
    Ben avatar
    4 posts
    Member since:
    Apr 2011

    Posted 21 Feb 2012 Link to this post

    Hi Georgi,

    Thanks for the update.  I've tried the internal build however I think there may have been a problem with the packaging of that release - the binaries are version 2012.1.0216 not 0221.  I've checked the manual download and the one via the VS extension, both are the same and still exhibit the issue.

    Cheers,
    Ben
  8. David
    David avatar
    11 posts
    Member since:
    Oct 2012

    Posted 21 Feb 2012 Link to this post

    So I'm not going crazy... same issue for me.
  9. Hooyoung
    Hooyoung avatar
    1 posts
    Member since:
    Dec 2011

    Posted 21 Feb 2012 Link to this post

    Thanks for the update. But still a problem
    I wish the problem settled soon.
    My project cannot continue because of a problem
  10. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 22 Feb 2012 Link to this post

    Hello,

    There was a minor issue with the build and older assemblies were included in the archives that were uploaded. We have fixed this and will re-upload the IB again for you to download. We will get back to you here as soon as we're ready.

    Please excuse us for any inconvenience caused.

    Kind regards,
    Deyan
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  11. Answer
    Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 22 Feb 2012 Link to this post

    Hi,

    This is a quick follow-up to inform you that the Internal Build issue is now corrected and you should be able to download the archives from your accounts.

    Kind regards,
    Deyan
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  12. David
    David avatar
    11 posts
    Member since:
    Oct 2012

    Posted 22 Feb 2012 Link to this post

    Excellent. Seems to be working as expected now (at least in my scenario). Thanks for the quick ersponse.
  13. Ben
    Ben avatar
    4 posts
    Member since:
    Apr 2011

    Posted 07 Mar 2012 Link to this post

    Hi,
    Just realised I never replied to confirm this fix - it works, thanks for the quick turnaround! :)

    Cheers,
    Ben
  14. Mike
    Mike avatar
    4 posts
    Member since:
    Mar 2012

    Posted 21 Mar 2012 Link to this post

    Hi Team,

    I downloaded RadControls_for_WindowsPhone_2012_1_0313_DEV_hotfix
     and using the reference for Telerik.Windows.Controls.Primitives  from here for zoom image fix.
    When i add reference from here my app stops working. Could you please suggest me how to fix zoom image in WP7.


    For your info please find below for my code.
    <telerikPrimitives:RadSlideView x:Name="slideView" ItemsSource="{Binding}">             <telerikPrimitives:RadSlideView.ItemTemplate>                 <DataTemplate>                     <telerikPrimitivesSlideView:PanAndZoomImage Source="{Binding}"/>                 </DataTemplate>             </telerikPrimitives:RadSlideView.ItemTemplate>         </telerikPrimitives:RadSlideView>
     
    Thanks,
    Aruna
  15. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 21 Mar 2012 Link to this post

    Hello Aruna,

    Could you please share some further details on the case? Do you get an exception or the PanAndZoomImage cannot zoom without throwing any exceptions?

    It will be great if you manage to reproduce the issue in a separate project and by opening a new support ticket - send it to us for further investigation.

    Thanks for your time.

    All the best,
    Deyan
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  16. Igor
    Igor avatar
    29 posts
    Member since:
    Mar 2012

    Posted 30 Mar 2012 Link to this post

    I have the same issude with BusyControl running after the image is loaded. I use WriteableBitmap as Source. I downloade RadControls_for_WindowsPhone_2012_1_0329_DEV_hotfix.zip but it did not help.
  17. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 02 Apr 2012 Link to this post

    Hello Igor,

    Currently, WritableBitmap is not supported since it does not expose the ImageLoaded event which we internally handle in order to stop the busy indicator and allow the panning and zooming behavior. You should use the BitmapImage class instead.

    Is there any particular reason you would like to use WritableBitmap?

    Greetings,
    Deyan
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  18. Mike
    Mike avatar
    4 posts
    Member since:
    Mar 2012

    Posted 02 Apr 2012 Link to this post

    Thanks for your response. But later i posted query on your forum i realized that telerik pan and zoom functionality looks like working(or feeling like image is zooming) with the large images like sizes around 1024*768.

    Thanks,

  19. Sebastian
    Sebastian avatar
    1 posts
    Member since:
    Oct 2012

    Posted 09 Nov 2012 Link to this post

    I just wanted to let you know that I made PanAndZoomImage work with WriteableBitmap by setting the private imageDownloaded field to "true" using reflection after setting the Source property.
    I know it's a dirty hack but still better than no panning and zooming at all ;)

    PanAndZoomImage pzi;
    ...
    var fi = pzi.GetType().GetField("imageDownloaded", BindingFlags.NonPublic | BindingFlags.Instance);
    fi.SetValue(pzi, true);

    Enjoy!
    Sebastian
  20. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 14 Nov 2012 Link to this post

    Hello Sebastian,

    Thanks for writing.
    I managed to reproduce the issue and it has been fixed. The fix will be available in the next internal build.
    Please write again if you have more feedback to share.

    Regards,
    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.
  21. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 16 Apr 2013 Link to this post

    Hello Ben,

    One of my friend  "was searching the code to display bitmap image and cam across your code, can you please help to code FullViewConverter?"

    Regards,
    Jayesh 
  22. QMatteoQ
    QMatteoQ avatar
    6 posts
    Member since:
    Oct 2010

    Posted 29 May 2013 Link to this post

    Hi, I have the latest RadControls version (2013.1.418.3040) and I'm using them in a Windows Phone 8 project, but I'm still hitting the exact same problem: using an attached property I'm loading the image from the isolated storage and displaying it, but the loading indicator never disappear and, most of all, pan and zoom aren't enabled.

    Am I missing something?

    Thanks!
  23. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 31 May 2013 Link to this post

    Hello Matteo,

    PanAndZoomImage works correctly in the latest Q2 2013 Beta release. Give it try.

    Regards,
    Victor
    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