DataTemplate.SetValue(BindableProperty, Object) 方法

定义

设置 property 的值。

public:
 void SetValue(Microsoft::Maui::Controls::BindableProperty ^ property, System::Object ^ value);
public void SetValue (Microsoft.Maui.Controls.BindableProperty property, object value);
member this.SetValue : Microsoft.Maui.Controls.BindableProperty * obj -> unit
Public Sub SetValue (property As BindableProperty, value As Object)

参数

property
BindableProperty

要设置的属性。

value
Object

新值。

适用于