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

Double Tap event

1 Answer 63 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.
Holger
Top achievements
Rank 1
Holger asked on 21 Oct 2013, 09:37 AM
The double tap event does not fire, even less can be overridden. Not in PanAndZoomImage, nor in RadSlideView. There is just the default zoom in/out behaviour. I need to add more code to distinguish Tap/Double Tap (currently Tap is always fired when you double tap - which is a big problem in my application)
Latest Q3-2013 controls.

Help is urgently needed! Thanks.

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 21 Oct 2013, 02:28 PM
Hello Holger,

Thank you for contacting us.

The reason for this behavior is that PanAndZoomImage handles the DoubleTap event and marks it as handled. You can inherit from this control and override OnDoubleTap in order to execute the custom actions that you need. Here's an example:
public class CustomPanAndZoomImage : PanAndZoomImage
{
    protected override void OnDoubleTap(System.Windows.Input.GestureEventArgs e)
    {
        base.OnDoubleTap(e);
 
        // Execute your custom action.
    }
}
Then simply make sure that you have added your custom control to RadSlideView's ItemTemplate instead of PanAndZoomImage.

I hope this information helps.

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
Holger
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or