New to Telerik UI for WinForms? Start a free 30-day trial

Provides data for gesture events that occur when touch or stylus gestures are performed on a control.

GestureEventArgs contains information about touch gestures such as pan, zoom, rotate, and tap operations. It provides access to gesture state, type, and properties needed to implement touch-based interactions in RadControls.

The class exposes gesture timing information (begin/end states), inertia detection, and the ability to mark events as handled to prevent further processing.

This event data is essential for implementing modern touch interfaces and gesture recognition in WinForms applications running on touch-enabled devices.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class GestureEventArgs : EventArgs

Inheritance: objectEventArgsGestureEventArgs

Derived Classes: PanGestureEventArgsPressAndTapGestureEventArgsRotateGestureEventArgsZoomGestureEventArgs

Inherited Members EventArgs.Empty

Properties

The type of the gesture that has occurred.

C#
public GestureType GestureType { get; }

[true] if the event has been handled and should not be processed further, [false] otherwise.

C#
public bool Handled { get; set; }

[true] if this is the beginning of the gesture, [false] otherwise.

C#
public bool IsBegin { get; }

[true] if this is the end of the gesture, [false] otherwise.

C#
public bool IsEnd { get; }

[true] if the event was caused by inertia, [false] otherwise.

C#
public bool IsInertia { get; }

The location of the gesture.

C#
public Point Location { get; }