Taal

PointerGestureRecognizer.SendPointerPressed Methode

Definitie

Hiermee wordt de bijbehorende opdracht uitgevoerd en wordt de PointerPressed gebeurtenis gegenereerd.

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

Parameters

sender
View

De weergave waarop de aanwijzer werd ingedrukt.

getPosition
Func<IElement,Nullable<Point>>

Een functie die de positie van de aanwijzer retourneert ten opzichte van een opgegeven element.

platformArgs
PlatformPointerEventArgs

De platformspecifieke gegevens die zijn gekoppeld aan de aanwijzergebeurtenis.

button
ButtonsMask

De knop die is gekoppeld aan de aanwijzer.

Uitzonderingen

sender is null.

Opmerkingen

Deze infrastructuurmethode is bedoeld voor gebarenplatformbeheerders.

Van toepassing op