AutomationProperties.GetLabeledBy(BindableObject) 方法

定义

如果 bindable 自己不带标签或 UI 中的其他元素对其进行描述,则返回标签为 bindable 的元素。

[Xamarin.Forms.TypeConverter(typeof(Xamarin.Forms.ReferenceTypeConverter))]
public static Xamarin.Forms.VisualElement GetLabeledBy (Xamarin.Forms.BindableObject bindable);
static member GetLabeledBy : Xamarin.Forms.BindableObject -> Xamarin.Forms.VisualElement

参数

bindable
BindableObject

要查找其标签的对象。

返回

标签为 bindable 的元素(如果有)。

属性

适用于