Multitouch Gestures over RadPanel

2 posts, 0 answers
  1. Gary
    Gary avatar
    5 posts
    Member since:
    Jun 2012

    Posted 06 Jun 2012 Link to this post

    Hello,
    i want to use two finger at same time over a panel with multitouch pad device. for example if i drag my both fingers to right, show text toRight, or if i drag my two fingers upside, another event. how can i recognize my fingers move which direction? i want to use panGesture, but it doesnt work:). 


            private void radPanel1_PanGesture(object sender, PanGestureEventArgs e)
            {
               if (e.IsEnd)
               
                    if (mouseUP.X > mouseDown.X)
                        MessageBox.Show("toright");
                    else if (mouseUp.X < mouseDown.X)
                   MessageBox.Show("toleft");
            }


    I'm appreciate if you help me
    Gary
  2. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 07 Jun 2012 Link to this post

    Hello Gary,

    Thank you for contacting us.

    Please try enabling the gestures for your RadPanel by using the following code:
    this.radPanel1.EnableGesture(GestureType.All);

    You can find some additional information regarding touch support in this help article.

    I hope this will help. Please let us know if you are still experiencing difficulties.

    Kind regards,
    Ivan Todorov
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top