DataTemplate.SetBinding(BindableProperty, BindingBase) 方法

定义

设置 property 的绑定。

public:
 void SetBinding(Microsoft::Maui::Controls::BindableProperty ^ property, Microsoft::Maui::Controls::BindingBase ^ binding);
public void SetBinding (Microsoft.Maui.Controls.BindableProperty property, Microsoft.Maui.Controls.BindingBase binding);
member this.SetBinding : Microsoft.Maui.Controls.BindableProperty * Microsoft.Maui.Controls.BindingBase -> unit
Public Sub SetBinding (property As BindableProperty, binding As BindingBase)

参数

property
BindableProperty

要绑定到的属性。

binding
BindingBase

要使用的绑定。

适用于