共用方式為


BindableObject.SetBinding(BindableProperty, BindingBase) 方法

定義

將系結指派給可系結屬性。

public:
 void SetBinding(Microsoft::Maui::Controls::BindableProperty ^ targetProperty, Microsoft::Maui::Controls::BindingBase ^ binding);
public void SetBinding (Microsoft.Maui.Controls.BindableProperty targetProperty, Microsoft.Maui.Controls.BindingBase binding);
member this.SetBinding : Microsoft.Maui.Controls.BindableProperty * Microsoft.Maui.Controls.BindingBase -> unit
Public Sub SetBinding (targetProperty As BindableProperty, binding As BindingBase)

參數

targetProperty
BindableProperty

要套用 binding的可系結屬性。

binding
BindingBase

要為 設定的 targetProperty系結。

適用於