ElementGesturesExtensions.Gesture<TGestureElement,TGestureRecognizer> Method
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.
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