Skip to main content

PointerPressedEventArgs Class

Definition

Namespace:Avalonia.Input
Assembly:Avalonia.Base
Package:Avalonia
public class PointerPressedEventArgs

Inheritance: EventArgs -> RoutedEventArgs -> PointerEventArgs -> PointerPressedEventArgs

Constructors

NameDescription
PointerPressedEventArgsNo summary available.

PointerPressedEventArgs Constructor

public PointerPressedEventArgs(object source, Avalonia.Input.IPointer pointer, Avalonia.Visual rootVisual, Avalonia.Point rootVisualPosition, ulong timestamp, Avalonia.Input.PointerPointProperties properties, Avalonia.Input.KeyModifiers modifiers, int clickCount)

Parameters

source object

pointer Avalonia.Input.IPointer

rootVisual Avalonia.Visual

rootVisualPosition Avalonia.Point

timestamp ulong

properties Avalonia.Input.PointerPointProperties

modifiers Avalonia.Input.KeyModifiers

clickCount int

Methods

NameDescription
GetCurrentPointReturns the PointerPoint associated with the current event Inherited from PointerEventArgs.
GetIntermediatePointsReturns the PointerPoint associated with the current event Inherited from PointerEventArgs.
GetPositionGets the pointer position relative to a control. Inherited from PointerEventArgs.
PreventGestureRecognitionPrevents this event from being handled by other gesture recognizers in the route Inherited from PointerEventArgs.

Properties

NameDescription
ClickCountNo summary available.
KeyModifiersGets a value that indicates which key modifiers were active at the time that the pointer event was initiated. Inherited from PointerEventArgs.
PointerGets specific pointer generated by input device. Inherited from PointerEventArgs.
PropertiesGets the state the pointer device had when this event occurred. Inherited from PointerEventArgs.
TimestampGets the time when the input occurred. Inherited from PointerEventArgs.
HandledGets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs.
RouteGets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs.
RoutedEventGets or sets the routed event associated with these event args. Inherited from RoutedEventArgs.
SourceGets or sets the source object that raised the routed event. Inherited from RoutedEventArgs.

ClickCount Property

public int ClickCount { get; set; }