Double Tap event

2 posts, 0 answers
  1. Holger
    Holger avatar
    1 posts
    Member since:
    Apr 2013

    Posted 21 Oct 2013 Link to this post

    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.
  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 21 Oct 2013 Link to this post

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