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

Gesture Events Not Firing

2 Answers 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 27 Jun 2014, 08:00 AM
Hi. I'm trying to get a sample application for pinch and zoom working. However, so far I have not had my handlers to be called even once.

Am I doing something wrong here?
        public Form1()
        {
            InitializeComponent();
 
            radPanel1.EnableGesture(GestureType.Pan);
            radPanel1.EnableGesture(GestureType.Zoom);
 
            radPanel1.PanGesture += new PanGestureEventHandler(ProcessPan);
            radPanel1.ZoomGesture += new ZoomGestureEventHandler(ProcessZoom);
        }

2 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 01 Jul 2014, 07:09 AM
Well i ended up working it out.

you cannot use EnableGesture in the Ctor simple as that.

I moved it to OnLoad and everything is fine now.
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 01 Jul 2014, 01:35 PM
Hello Michael,

Thank you for writing.

I am glad that the issue you were facing is now resolved. As you have already found out, it is necessary to enable gestures in the Form.Load event. Please do not hesitate to contact us if you have any additional questions.

Regards,
Desislava
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or