Freigeben über


DataTemplate.SetBinding(BindableProperty, BindingBase) Methode

Definition

Legt die Bindung für property fest.

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)

Parameter

property
BindableProperty

Die Eigenschaft, an die gebunden werden soll.

binding
BindingBase

Die zu verwendende Bindung.

Gilt für: