-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.Input.PointerEventHandler |
winrt delegate |
Represents the method that will handle pointer message events such as PointerPressed.
The object where the event handler is attached.
Event data for the event.
This delegate is used for handling each of the following events:
- PointerPressed
- PointerCanceled
- PointerCaptureLost
- PointerEntered
- PointerExited
- PointerMoved
- PointerReleased
- PointerWheelChanged
The following code example shows scenario 2 from the Input sample. This code shows some usage patterns for direct manipulation using the PointerPressed, PointerReleased, PointerEntered, PointerExited, and PointerMoved events.
[!code-xamlScenario2Xaml]
[!code-csharpScenario2Code]
[!code-vbScenario2Code]