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

radcarousel doesn't support Touch-Events?

3 Answers 188 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 02 Jun 2012, 03:04 PM
Hi,
i have to use Touchpad instead of Mouse. All Gestures do work with mouse. With touchpad without radcarousel works too. but after i put carousel Control, Touchpad doesn't recognize any points over this control. should i install something or any trick?
thanks
Gary

PS:i mean, is it possible, that we send radcarousel to background of a panel, but visuelly i could see it and doesn't disappeared? therefore all Gestures can be recognized over the panel, but radcarousel would be effected

3 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 06 Jun 2012, 05:09 PM
Hello Gary,

Thank you for contacting us.

Touch and mouse and two different input methods and the events that are fired for each of them is different. RadCarousel supports built-in touch functionality which means that you should be able to rotate through its items with a pan gesture without having to implement any additional functionality.

Please make sure that your touch device actually provides touch input messages because most of the touchpad devices are used as a replacement for the mouse and therefore provide mouse input only.

I am not sure I understand what do you mean by "Touchpad doesn't recognize any points over this control". Can you please send us a sample code or project which demonstrates your approach as well as a detailed description of your scenario - the devices you are using and the behavior you are expecting. This will let us provide you with a proper answer.

Meanwhile you can take a look at our online documentation article regarding the Touch support in TPF and Touch support in RadCarousel.

I am looking forward to hearing from you.

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 >>
0
Gary
Top achievements
Rank 1
answered on 14 Jun 2012, 08:49 AM
hi Ivan,
thanks for replying. actually my touch device supports multitouch. i solved this problem. but i have a question about this project and touch functions.
this project works great. but i have problem when i extend that with pre-defined Multitouch gestures. if the selected item is clicked,then object will be scaled bigger. in this situation  i want to use rotate and zoom gesture for the selectedItem. the rotate works perfect. i can zoom (pinch out/int) easily, but when i click this again for putting the item on the RadCarousel, the item would not be attached to RadCarousel anymore and the item is located somewhere else. 
i want to do following steps:
1) click on selectedItem --> item scaled bigger (done)
2) rotating  the object(done)
3) pinch in/out(done)
4) click again and return to the original position on the radcarousel(in this step if i use only rotate gesture works great, but when i use Zoom the item will be removed from radcarousel itemlist). 
for Zooming:
  
  
        private void radCarousel1_ZoomGesture(object sender, ZoomGestureEventArgs e)
        {
           button = (RadButtonElement)this.radCarousel1.SelectedItem;
            button.ScaleTransform = new SizeF(
                (float)(button.ScaleTransform.Width * e.ZoomFactor),
                (float)(button.ScaleTransform.Height * e.ZoomFactor));
              
        }
  
for rotating:
  
 private void radCarousel1_RotateGesture(object sender, RotateGestureEventArgs e)
        {
           
              
            button.AngleTransform -= (float)(e.Angle * 180D / Math.PI);
  
          
        }

i'm appreciate if someone help me
thanks
Gary
0
Ivan Todorov
Telerik team
answered on 18 Jun 2012, 12:30 PM
Hello Gary,

Thank you for the detailed info.

The item was disappearing from the control because RadCarousel uses internally the properties you modify by the gestures. To overcome this, you simply need to reset them when the item is zoomed out by a click. I am sending you a modified version of the CarouseImageGallery project which demonstrates how to achieve this. I have only added some modifications in the ResetZoomedItem method and also changed the way that gestures are handled.

A bit off topic, you can also check the PhotoAlbum Demo application which implements similar scenario but provides an implementation of full touch support.

I hope you find this useful. Feel free to contact us if you have any further questions.

Kind regards, Ivan Todorov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
Carousel
Asked by
Gary
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Gary
Top achievements
Rank 1
Share this question
or