Behavior<T>.OnAttachedTo 方法

定義

多載

OnAttachedTo(T)

應用程式開發人員可以覆寫這個方法,以實作將與 bindable 建立關聯的行為。

OnAttachedTo(BindableObject)

附加至 Superclass,然後對此物件呼叫 OnAttachedTo(T) 方法。

OnAttachedTo(T)

應用程式開發人員可以覆寫這個方法,以實作將與 bindable 建立關聯的行為。

protected virtual void OnAttachedTo (T bindable);
override this.OnAttachedTo : 'T -> unit

參數

bindable
T

附加行為的目標可繫結物件。

適用於

OnAttachedTo(BindableObject)

附加至 Superclass,然後對此物件呼叫 OnAttachedTo(T) 方法。

protected override void OnAttachedTo (Xamarin.Forms.BindableObject bindable);
override this.OnAttachedTo : Xamarin.Forms.BindableObject -> unit

參數

bindable
BindableObject

附加行為的目標可繫結物件。

適用於