Bagikan melalui


TemplateExtensions.SetBinding(DataTemplate, BindableProperty, String) Metode

Definisi

Mengikat objek targetProperty ke instans self baru Binding yang dibuat dengan path.

public:
[System::Runtime::CompilerServices::Extension]
 static void SetBinding(Microsoft::Maui::Controls::DataTemplate ^ self, Microsoft::Maui::Controls::BindableProperty ^ targetProperty, System::String ^ path);
public static void SetBinding (this Microsoft.Maui.Controls.DataTemplate self, Microsoft.Maui.Controls.BindableProperty targetProperty, string path);
static member SetBinding : Microsoft.Maui.Controls.DataTemplate * Microsoft.Maui.Controls.BindableProperty * string -> unit
<Extension()>
Public Sub SetBinding (self As DataTemplate, targetProperty As BindableProperty, path As String)

Parameter

self
DataTemplate

Templat tempat metode ini beroperasi.

targetProperty
BindableProperty

Properti target pengikatan.

path
String

Jalan menuju pengikatan.

Berlaku untuk