Share via


PlatformBehavior<TView,TPlatformView>.OnDetachingFrom 方法

定义

重载

OnDetachingFrom(BindableObject)

应用程序开发者可重写此方法,从先前调用 OnAttachedTo(BindableObject) 方法实现的 bindable 中删除行为。

OnDetachingFrom(TView)

应用程序开发者可重写此方法,从先前调用 OnAttachedTo(T) 方法实现的 bindable 中删除行为。

OnDetachingFrom(BindableObject)

应用程序开发者可重写此方法,从先前调用 OnAttachedTo(BindableObject) 方法实现的 bindable 中删除行为。

protected:
 override void OnDetachingFrom(Microsoft::Maui::Controls::BindableObject ^ bindable);
protected override sealed void OnDetachingFrom (Microsoft.Maui.Controls.BindableObject bindable);
override this.OnDetachingFrom : Microsoft.Maui.Controls.BindableObject -> unit
Protected Overrides NotOverridable Sub OnDetachingFrom (bindable As BindableObject)

参数

bindable
BindableObject

要分离行为的可绑定对象。

适用于

OnDetachingFrom(TView)

应用程序开发者可重写此方法,从先前调用 OnAttachedTo(T) 方法实现的 bindable 中删除行为。

protected:
 override void OnDetachingFrom(TView bindable);
protected override sealed void OnDetachingFrom (TView bindable);
override this.OnDetachingFrom : 'View -> unit
Protected Overrides NotOverridable Sub OnDetachingFrom (bindable As TView)

参数

bindable
TView

要分离行为的可绑定对象。

适用于