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

Exception when panning/zooming

2 Answers 82 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.
Chris
Top achievements
Rank 1
Chris asked on 31 Oct 2013, 07:32 AM
This issue seems to be new to the 913 release of RadControls as it was working fine for my situation previously.

I basically have a page with a pivot, with several pivotitems. On one of the pivot items is an image. When the user double taps the image, I do the following:

Hide the ApplicationBar
Create a new instance of MY user control called PanScanImage, which basically has a Source property, and wraps the PanAndZoomImage control (it has a XAML which is a grid that fills the page, and it literaly just sets the Source property on that control).
Creates an instance of the DialogService (from the Coding4Fun toolkit), and uses my user control as the child.
I then display the dialog (its a popup basically).
Up until this point works fine.
Then when you try and pan/zoom I get this exception:

{System.Windows.ApplicationUnhandledExceptionEventArgs}
    base: {System.Windows.ApplicationUnhandledExceptionEventArgs}
    ExceptionObject: {System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.SlideView.PanAndZoomImage.Telerik.Windows.Controls.Gestures.IPinchListener.OnPinch(PinchGesture gesture)
   at Telerik.Windows.Controls.PinchProcessor.OnFrameReported(Object sender, TouchFrameEventArgs e)
   at System.Windows.Input.Touch.OnTouch(Object sender, TouchFrameEventArgs e)
   at MS.Internal.JoltHelper.RaiseEvent(IntPtr target, UInt32 eventId, IntPtr coreEventArgs, UInt32 eventArgsTypeIndex)}
    Handled: false

This scenario used to work prior to 913...

EDIT: Just to confirm, it was build 828 that this worked in.

2 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 01 Nov 2013, 04:45 PM
Hi Chris,

Thank you for writing.

I have responded to your support ticket regarding the same issue.

In short, it is fixed with the Q3 release, so you simply need to download the latest version of our controls.

Let us know if you need further assistance.

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.
0
Chris
Top achievements
Rank 1
answered on 01 Nov 2013, 05:15 PM
Happy to confirm that it has fixed it. Not sure why but the Q3 release wasn't showing up in the updates. Downloaded+installed manually and all is well. Thank you.
Tags
PanAndZoomImage
Asked by
Chris
Top achievements
Rank 1
Answers by
Todor
Telerik team
Chris
Top achievements
Rank 1
Share this question
or