共用方式為


TapGestureRecognizer 建構函式

定義

多載

TapGestureRecognizer()

初始化 TapGestureRecognizer 物件的新執行個體。

TapGestureRecognizer(Action<View,Object>)
已淘汰.

初始化具備參數化回呼的 TapGestureRecognizer 物件新執行個體。

TapGestureRecognizer(Action<View>)
已淘汰.

初始化具備回呼的 TapGestureRecognizer 物件新執行個體。

TapGestureRecognizer()

初始化 TapGestureRecognizer 物件的新執行個體。

public TapGestureRecognizer ();

適用於

TapGestureRecognizer(Action<View,Object>)

警告

TapGestureRecognizer(Action<View, object> tappedCallback) is obsolete as of version 1.0.2. Please use Command instead.

初始化具備參數化回呼的 TapGestureRecognizer 物件新執行個體。

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("TapGestureRecognizer(Action<View, object> tappedCallback) is obsolete as of version 1.0.2. Please use Command instead.")]
public TapGestureRecognizer (Action<Xamarin.Forms.View,object> tappedCallback);
new Xamarin.Forms.TapGestureRecognizer : Action<Xamarin.Forms.View, obj> -> Xamarin.Forms.TapGestureRecognizer

參數

tappedCallback
System.Action<View,System.Object>

第一個引數為與辨識器建立關聯的 View,且第二個引數為回呼參數的動作。

屬性
System.ComponentModel.EditorBrowsableAttribute System.ObsoleteAttribute

適用於

TapGestureRecognizer(Action<View>)

警告

TapGestureRecognizer(Action<View> tappedCallback) is obsolete as of version 1.0.2. Please use Command instead.

初始化具備回呼的 TapGestureRecognizer 物件新執行個體。

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("TapGestureRecognizer(Action<View> tappedCallback) is obsolete as of version 1.0.2. Please use Command instead.")]
public TapGestureRecognizer (Action<Xamarin.Forms.View> tappedCallback);
new Xamarin.Forms.TapGestureRecognizer : Action<Xamarin.Forms.View> -> Xamarin.Forms.TapGestureRecognizer

參數

tappedCallback
System.Action<View>

第一個引數為與辨識器建立關聯 View 的動作。

屬性
System.ComponentModel.EditorBrowsableAttribute System.ObsoleteAttribute

適用於