New to Telerik UI for WPFStart a free 30-day trial

Represents an object that is attached to an owning object.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Type Parameters:

T

The type that owns this object.

Syntax:

C#
public abstract class AttachableObject<T> : DependencyObject where T : class

Inheritance: objectAttachableObject<T>

Derived Classes: ControlCommandBase<T>ServiceBase<T>

Constructors

Initializes a new instance of the AttachableObject<T> class.

C#
protected AttachableObject()

Properties

Gets the object instance that owns this service.

C#
public T Owner { get; protected set; }

Methods

Performs the core logic behind the Attach routine. Allows inheritors to provide additional implementation.

C#
protected virtual void OnAttached()

Performs the core logic behind the Detach routine. Allows inheritors to provide additional implementation.

C#
protected virtual void OnDetached(T previousOwner)
Parameters:previousOwnerT