Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PlatformBehavior<TView,TPlatformView>.OnDetachedFrom Method

Definition

Namespace:
Microsoft.Maui.Controls
Assembly:
Microsoft.Maui.Controls.dll
Source:
PlatformBehavior.cs
Source:
PlatformBehavior.cs
Source:
PlatformBehavior.cs
Source:
PlatformBehavior.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

This method is called when the bindable is detached from the platform view hierarchy.

protected:
 virtual void OnDetachedFrom(TView bindable, TPlatformView platformView);
protected virtual void OnDetachedFrom(TView bindable, TPlatformView platformView);
abstract member OnDetachedFrom : 'View * 'PlatformView -> unit
override this.OnDetachedFrom : 'View * 'PlatformView -> unit
Protected Overridable Sub OnDetachedFrom (bindable As TView, platformView As TPlatformView)

Parameters

bindable
TView

The bindable object to which the behavior was attached.

platformView
TPlatformView

The platform control connected to the bindable object.

Applies to


Feedback

Was this page helpful?