Share via


Behavior.OnDetachingFrom(BindableObject) 方法

定义

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

protected:
 virtual void OnDetachingFrom(Microsoft::Maui::Controls::BindableObject ^ bindable);
protected virtual void OnDetachingFrom (Microsoft.Maui.Controls.BindableObject bindable);
abstract member OnDetachingFrom : Microsoft.Maui.Controls.BindableObject -> unit
override this.OnDetachingFrom : Microsoft.Maui.Controls.BindableObject -> unit
Protected Overridable Sub OnDetachingFrom (bindable As BindableObject)

参数

bindable
BindableObject

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

适用于