PlatformBehavior<TView,TPlatformView>.OnAttachedTo Method
Definition
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.
Overloads
OnAttachedTo(BindableObject) |
Application developers override this method to implement the behaviors that will be associated with |
OnAttachedTo(TView) |
Application developers override this method to implement the behaviors that will be associated with |
OnAttachedTo(TView, TPlatformView) |
This method is called when the bindable is attached to the platform view hierarchy. |
OnAttachedTo(BindableObject)
- Source:
- PlatformBehavior.cs
- Source:
- PlatformBehavior.cs
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)
- Source:
- PlatformBehavior.cs
- Source:
- PlatformBehavior.cs
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)
- Source:
- PlatformBehavior.cs
- Source:
- PlatformBehavior.cs
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.