ClassAttachableObject<T>
Class
Provides a base class for objects that can be attached to and detached from an owner object.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Type Parameters:
T
The type of the owner object.
Syntax:
cs-api-definition
public abstract class AttachableObject<T> : BindableObject where T : class
Inheritance: objectAttachableObject<T>
Derived Classes:
Constructors
AttachableObject()
Initializes a new instance of the AttachableObject<T> class.
Declaration
cs-api-definition
protected AttachableObject()
Properties
Owner
Gets the owner object that this attachable object is associated with.
Declaration
cs-api-definition
public T Owner { get; protected set; }
Property Value
T
The owner object.
Methods
OnAttached()
Called when this object is attached to a new owner.
Declaration
cs-api-definition
protected virtual void OnAttached()
OnDetached(T)
Called when this object is detached from its owner.
Declaration
cs-api-definition
protected virtual void OnDetached(T previousOwner)
Parameters
previousOwner
T
The previous owner object.