Class SwipeGestureActivity
Implements swipe gesture handling for controls.
public class SwipeGestureActivity : BaseControlActivity, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, IControlNotification, IDisposable
- Inheritance
-
SwipeGestureActivity
- Implements
Constructors
- SwipeGestureActivity()
Initializes a new instance of the SwipeGestureActivity class.
Properties
- DefaultMinSwipeDistance
Gets or sets the default minimum swipe distance for all instances of SwipeGestureActivity. If not set, a system-defined default value is used.
- HitTest
Gets or sets the hit test delegate to determine which part of the element was hit.
- HitTestMouseDown
Gets the hit test result for the most recent mouse down event.
- IsDragging
Gets a value indicating whether a drag operation is currently in progress for this activity.
- IsEnabled
Gets or sets a value indicating whether the activity is enabled.
- MinSwipeDistance
Gets or sets the minimum swipe distance required to recognize a swipe gesture.
Methods
- AfterLostFocus(AbstractControl, LostFocusEventArgs)
This method is invoked when the control lost focus.
- AfterVisibleChanged(AbstractControl, EventArgs)
Called after the value of the Visible property changes.
- BeforeMouseDown(AbstractControl, MouseEventArgs)
Called before the mouse button was pressed.
- BeforeMouseUp(AbstractControl, MouseEventArgs)
Called before the mouse button was released.
- DisposeManaged()
Override to dispose managed resources. Here we dispose all used object references.
- GetHitTest(AbstractControl, PointD)
Performs a hit test on the specified control at the given click location.
- GetMinSwipeDistance(AbstractControl)
Gets the minimum distance required to recognize a swipe gesture.
- ResetDragging(AbstractControl)
Resets the dragging state to its default value.
Events
- SwipeDetected
Occurs when a swipe gesture is detected.