Class AttachableObject<T>
Provides a base class for objects that can be attached to and detached from an owner object.
Inheritance
Namespace: Telerik.Maui.Controls
Assembly: Telerik.Maui.Controls.dll
Syntax
public abstract class AttachableObject<T> : BindableObject where T : class
Type Parameters
T
The type of the owner object. |
Constructors
AttachableObject()
Initializes a new instance of the AttachableObject<T> class.
Declaration
protected AttachableObject()
Properties
Owner
Gets the owner object that this attachable object is associated with.
Declaration
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
protected virtual void OnAttached()
OnDetached(T)
Called when this object is detached from its owner.
Declaration
protected virtual void OnDetached(T previousOwner)
Parameters
T
previousOwner
The previous owner object. |