Class InteriorScrollActivity
Implements interior scroll handling for controls.
public class InteriorScrollActivity : BaseControlActivity, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, IControlNotification, IDisposable
- Inheritance
-
InteriorScrollActivity
- Implements
Constructors
- InteriorScrollActivity()
Initializes a new instance of the InteriorScrollActivity class.
Properties
- DefaultMinGestureDistance
Gets or sets the default minimum gesture distance for all instances of InteriorScrollActivity. If not set, a system-defined default value is used.
- DefaultScrollMethod
Gets or sets the default scroll method for all instances of InteriorScrollActivity.
- HitTest
Gets or sets the hit test delegate to determine which part of the element was hit.
- IsVertical
Gets or sets a value indicating whether the current scroll action is vertical. This property can be used to track the orientation of the scroll gesture.
- LastMouseDownLocation
Gets the location of the last mouse down event.
- LastMouseMoveLocation
Gets the location of the last mouse move event.
- MinGestureDistance
Gets or sets the minimum gesture distance for the current instance of InteriorScrollActivity. If not set, DefaultMinGestureDistance is used.
- RealScrollMethod
Gets the effective scroll method for the current instance.
- ScrollMethod
Gets or sets the scroll method for the current instance of InteriorScrollActivity. Default is null. If not specified, DefaultScrollMethod is used.
- ScrollOrigin
Gets or sets the scroll origin point.
- SendScrollToControl
Gets or sets whether to send scroll events to the attached control. Default is
true.
Methods
- AfterLostFocus(AbstractControl, LostFocusEventArgs)
This method is invoked when the control lost focus.
- AfterMouseLeave(AbstractControl, EventArgs)
Called after the mouse pointer leaves the control.
- AfterVisibleChanged(AbstractControl, EventArgs)
Called after the value of the Visible property changes.
- AfterVisualStateChanged(AbstractControl, EventArgs)
Called when VisualStateChanged property is changed.
- BeforeMouseDown(AbstractControl, MouseEventArgs)
Called before the mouse button was pressed.
- BeforeMouseMove(AbstractControl, MouseEventArgs)
Called before the mouse pointer was moved.
- BeforeMouseUp(AbstractControl, MouseEventArgs)
Called before the mouse button was released.
- DisposeManaged()
Override to dispose managed resources. Here we dispose all used object references.
- GetMinGestureDistance(AbstractControl)
Gets the minimum distance required to recognize a gesture.
- OnClickRepeatTimerEvent(object?, EventArgs)
Handles the timer event for repeating click actions, typically used to trigger repeated scrolling or similar behavior when a control is held down.
- RaiseDeltaScroll(AbstractControl)
Raises a delta scroll event for the specified control.
- RaiseScroll(AbstractControl, ScrollBarOrientation, ScrollEventType, int, int)
Raises a scroll event for the specified control with the given orientation, event type, and value changes.
- RaiseScroll(AbstractControl, PointD?)
Raises a scroll event based on the movement from the initial mouse down location to the specified touch location or the current mouse position.
- ResetDragging(AbstractControl)
Resets the dragging state to its default value.
- SubscribeClickRepeated(AbstractControl)
Subscribes the specified control to receive repeated click events if not already subscribed.
- UnsubscribeClickRepeated()
Unsubscribes the current instance from the repeated click timer event.
Events
- DeltaScroll
Occurs when an delta scroll action is performed.
- Scroll
Occurs when a scroll action is performed.