Bagikan melalui


SettersExtensions.AddBinding Method

Definition

Add a Setter with a Binding to the IList<Setter>

public:
[System::Runtime::CompilerServices::Extension]
 static void AddBinding(System::Collections::Generic::IList<Microsoft::Maui::Controls::Setter ^> ^ setters, Microsoft::Maui::Controls::BindableProperty ^ property, Microsoft::Maui::Controls::Binding ^ binding);
public static void AddBinding (this System.Collections.Generic.IList<Microsoft.Maui.Controls.Setter> setters, Microsoft.Maui.Controls.BindableProperty property, Microsoft.Maui.Controls.Binding binding);
static member AddBinding : System.Collections.Generic.IList<Microsoft.Maui.Controls.Setter> * Microsoft.Maui.Controls.BindableProperty * Microsoft.Maui.Controls.Binding -> unit
<Extension()>
Public Sub AddBinding (setters As IList(Of Setter), property As BindableProperty, binding As Binding)

Parameters

setters
IList<Setter>

The list of setters to which to add a setter that binds property using binding.

property
BindableProperty

The property to set.

binding
Binding

The binding to add.

Applies to