PointerGestureRecognizer.SendPointerPressed 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
執行相關指令並觸發事件 PointerPressed 。
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)
參數
- sender
- View
指針被按下的視角。
- platformArgs
- PlatformPointerEventArgs
與指標事件相關的平台特定資料。
- button
- ButtonsMask
與指標事件相關的按鈕。
例外狀況
sender 是 null。
備註
此基礎架構方法專為手勢平台管理者設計。