PlatformBehavior<TView,TPlatformView>.OnAttachedTo Method

Definition

Overloads

OnAttachedTo(BindableObject)

Application developers override this method to implement the behaviors that will be associated with bindable.

OnAttachedTo(TView)

Application developers override this method to implement the behaviors that will be associated with bindable.

OnAttachedTo(TView, TPlatformView)

This method is called when the bindable is attached to the platform view hierarchy.

OnAttachedTo(BindableObject)

Application developers override this method to implement the behaviors that will be associated with bindable.

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

Parameters

bindable
BindableObject

The bindable object to which the behavior was attached.

Applies to

OnAttachedTo(TView)

Application developers override this method to implement the behaviors that will be associated with bindable.

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

Parameters

bindable
TView

The bindable object to which the behavior was attached.

Applies to

OnAttachedTo(TView, TPlatformView)

This method is called when the bindable is attached to the platform view hierarchy.

protected:
 virtual void OnAttachedTo(TView bindable, TPlatformView platformView);
protected virtual void OnAttachedTo (TView bindable, TPlatformView platformView);
override this.OnAttachedTo : 'View * 'PlatformView -> unit
Protected Overridable Sub OnAttachedTo (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