通过


DataTemplate.SetValue(BindableProperty, Object) 方法

定义

为模板化项的属性设置静态值。

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

要应用的值。

适用于