LongPressGestureRecognizer.LongPressing Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the long press gesture state changes. Primarily useful on iOS and Mac Catalyst for tracking Started, Running, Completed, and Canceled states.
public:
event EventHandler<Microsoft::Maui::Controls::LongPressingEventArgs ^> ^ LongPressing;
public event EventHandler<Microsoft.Maui.Controls.LongPressingEventArgs>? LongPressing;
member this.LongPressing : EventHandler<Microsoft.Maui.Controls.LongPressingEventArgs>
Public Event LongPressing As EventHandler(Of LongPressingEventArgs)
Event Type
Remarks
On Android and Windows, this event fires when the gesture completes or is cancelled, but does not provide Started/Running state updates.