Freigeben über


ElementGesturesExtensions.Gesture<TGestureElement,TGestureRecognizer> Method

Definition

public static TGestureElement Gesture<TGestureElement,TGestureRecognizer> (this TGestureElement gestureElement, Action<TGestureRecognizer> init) where TGestureElement : Xamarin.Forms.Element, Xamarin.Forms.IGestureRecognizers where TGestureRecognizer : Xamarin.Forms.GestureRecognizernew();
static member Gesture : 'GestureElement * Action<'GestureRecognizer (requires 'GestureRecognizer :> Xamarin.Forms.GestureRecognizer and 'GestureRecognizer : (new : unit -> 'GestureRecognizer))> -> 'GestureElement (requires 'GestureElement :> Xamarin.Forms.Element and 'GestureElement :> Xamarin.Forms.IGestureRecognizers and 'GestureRecognizer :> Xamarin.Forms.GestureRecognizer and 'GestureRecognizer : (new : unit -> 'GestureRecognizer))

Type Parameters

TGestureElement
TGestureRecognizer

Parameters

gestureElement
TGestureElement
init
System.Action<TGestureRecognizer>

Returns

TGestureElement

Applies to