BindableObject.SetBinding(BindableProperty, BindingBase) Method

Definition

Assigns a binding to a bindable property.

C#
public void SetBinding (Microsoft.Maui.Controls.BindableProperty targetProperty, Microsoft.Maui.Controls.BindingBase binding);

Parameters

targetProperty
BindableProperty

The bindable property on which to apply binding.

binding
BindingBase

The binding to set for targetProperty.

Applies to

Product Versions
.NET MAUI 8, 9