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

适用于