AttachableObject<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:
C#
public abstract class AttachableObject<T> : BindableObject where T : class
Inheritance: objectAttachableObject<T>
Derived Classes:
Constructors
Initializes a new instance of the AttachableObject<T> class.
C#
protected AttachableObject()
Properties
Gets the owner object that this attachable object is associated with.
C#
public T Owner { get; protected set; }
The owner object.
Methods
Called when this object is attached to a new owner.
C#
protected virtual void OnAttached()
Called when this object is detached from its owner.
C#
protected virtual void OnDetached(T previousOwner)
The previous owner object.