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

PanAndZoomImage not zooming

21 Answers 219 Views
SlideView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ben
Top achievements
Rank 1
Ben asked on 16 Feb 2012, 11:55 PM
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

21 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 20 Feb 2012, 05:06 PM
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 >>
0
Ben
Top achievements
Rank 1
answered on 20 Feb 2012, 05:26 PM
Great, thanks for the feedback :)

Cheers,
Ben
0
David
Top achievements
Rank 1
answered on 21 Feb 2012, 11:13 AM
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.
0
Georgi
Telerik team
answered on 21 Feb 2012, 06:05 PM
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 >>
0
Ben
Top achievements
Rank 1
answered on 21 Feb 2012, 11:31 PM
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
0
David
Top achievements
Rank 1
answered on 21 Feb 2012, 11:44 PM
So I'm not going crazy... same issue for me.
0
Hooyoung
Top achievements
Rank 1
answered on 22 Feb 2012, 04:29 AM
Thanks for the update. But still a problem
I wish the problem settled soon.
My project cannot continue because of a problem
0
Deyan
Telerik team
answered on 22 Feb 2012, 09:27 AM
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 >>
0
Accepted
Deyan
Telerik team
answered on 22 Feb 2012, 12:41 PM
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 >>
0
David
Top achievements
Rank 1
answered on 22 Feb 2012, 01:16 PM
Excellent. Seems to be working as expected now (at least in my scenario). Thanks for the quick ersponse.
0
Ben
Top achievements
Rank 1
answered on 07 Mar 2012, 03:57 PM
Hi,
Just realised I never replied to confirm this fix - it works, thanks for the quick turnaround! :)

Cheers,
Ben
0
Mike
Top achievements
Rank 1
answered on 21 Mar 2012, 02:35 PM
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
0
Deyan
Telerik team
answered on 21 Mar 2012, 03:29 PM
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 >>
0
Igor
Top achievements
Rank 1
answered on 30 Mar 2012, 04:04 PM
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.
0
Deyan
Telerik team
answered on 02 Apr 2012, 07:09 AM
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 >>
0
Mike
Top achievements
Rank 1
answered on 02 Apr 2012, 11:50 AM
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,

0
Sebastian
Top achievements
Rank 1
answered on 09 Nov 2012, 03:45 PM
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
0
Victor
Telerik team
answered on 14 Nov 2012, 12:55 PM
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.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 16 Apr 2013, 01:39 PM
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 
0
QMatteoQ
Top achievements
Rank 1
answered on 29 May 2013, 04:05 PM
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!
0
Victor
Telerik team
answered on 31 May 2013, 11:39 AM
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.
Tags
SlideView
Asked by
Ben
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Ben
Top achievements
Rank 1
David
Top achievements
Rank 1
Hooyoung
Top achievements
Rank 1
Deyan
Telerik team
Mike
Top achievements
Rank 1
Igor
Top achievements
Rank 1
Sebastian
Top achievements
Rank 1
Victor
Telerik team
Jayesh Goyani
Top achievements
Rank 2
QMatteoQ
Top achievements
Rank 1
Share this question
or