TemplateExtensions.SetBinding(DataTemplate, BindableProperty, String) Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Привязывает targetProperty
объекта self
к новому экземпляру Binding, который был создан с помощью path
.
public static void SetBinding (this Xamarin.Forms.DataTemplate self, Xamarin.Forms.BindableProperty targetProperty, string path);
static member SetBinding : Xamarin.Forms.DataTemplate * Xamarin.Forms.BindableProperty * string -> unit
Параметры
- self
- DataTemplate
Шаблон, по которому работает этот метод.
- targetProperty
- BindableProperty
Целевое свойство привязки.
- path
- System.String
Путь к привязке.