TouchToolKit for WinForms | ComponentOne
C1.Win.TouchToolKit Namespace / C1TouchEventProvider Class / PointerPressed Event
Example

In This Topic
    PointerPressed Event (C1TouchEventProvider)
    In This Topic
    Occurs when the pointer device initiates a Press action within the specific control.
    Syntax
    'Declaration
     
    
    Public Event PointerPressed As EventHandler(Of PointerEventArgs)
    public event EventHandler<PointerEventArgs> PointerPressed
    Event Data

    The event handler receives an argument of type PointerEventArgs containing data related to this event. The following PointerEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets the PointerDeviceType for the pointer device.  
    Gets or sets a value that marks the routed event as handled. Setting to true prevents most handlers along the event route from handling the same event again. (Inherited from C1.Win.TouchToolKit.TouchRoutedEventArgs)
    Gets the system-generated identifier for this pointer reference.  
    Gets a value that determines whether the pointer device was in contact with a sensor or digitizer at the time that the event was reported.  
    Gets a value that determines whether the pointer device was in detection range of a sensor or digitizer at the time that the event was reported.  
    Gets a reference to the object that raised the event. (Inherited from C1.Win.TouchToolKit.TouchRoutedEventArgs)
    Gets the x- and y- control coordinates of the touch input at completed position.  
    Gets extended information about the input pointer.  
    Gets the target control which attached to the C1TouchEventProvider. (Inherited from C1.Win.TouchToolKit.TouchRoutedEventArgs)
    Remarks

    Note Other events instead of PointerReleased may fire at the end of the action—for example, PointerCanceled or PointerCaptureLost. Don't rely on PointerPressed and PointerReleased events always occurring in pairs. To function properly, your app must listen for and handle all events that represent likely conclusions to the Press action. Some of the reasons why you might not get a PointerReleased occurrence are:

    • Differences in how specific hardware handles touch actions and Press actions
    • User actions that change the relationship of the display area, such as changing resolution or monitor settings
    • Input interactions such as a stylus touching the same surface as a previous touch action

    This event is a routed event. If you do not want parent control receive this event, set PointerEventArgs.Handled

    Example

    The following code example shows how to use this event.

    See Also