Language

TapGestureRecognizer.SendTapped Method

Definition

Executes the associated command and raises the Tapped event.

public void SendTapped(Microsoft.Maui.Controls.View sender, Func<Microsoft.Maui.IElement?,Microsoft.Maui.Graphics.Point?>? getPosition = default);
member this.SendTapped : Microsoft.Maui.Controls.View * Func<Microsoft.Maui.IElement, Nullable<Microsoft.Maui.Graphics.Point>> -> unit
Public Sub SendTapped (sender As View, Optional getPosition As Func(Of IElement, Nullable(Of Point)) = Nothing)

Parameters

sender
View

The view on which the tap gesture was recognized.

getPosition
Func<IElement,Nullable<Point>>

A function that returns the tap position relative to a specified element.

Exceptions

sender is null.

Remarks

This infrastructure method is intended for gesture platform managers.

Applies to