PlatformBehavior<TView,TPlatformView>.OnDetachingFrom 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
OnDetachingFrom(BindableObject) |
应用程序开发者可重写此方法,从先前调用 OnAttachedTo(BindableObject) 方法实现的 |
OnDetachingFrom(TView) |
应用程序开发者可重写此方法,从先前调用 OnAttachedTo(T) 方法实现的 |
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
要分离行为的可绑定对象。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈