Share via


TemplateExtensions.SetBinding(DataTemplate, BindableProperty, String) Method

Definition

Binds the self object's targetProperty to a new Binding instance that was created with 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

Parameters

self
DataTemplate

The template on which this method operates.

targetProperty
BindableProperty

The target property of the binding.

path
System.String

The path to the binding.

Applies to