TextViewComponentBase Class
Definition
Base class for Avalonia.Controls.Documents.Primitives.Components.ITextViewComponent implementations that are not already derived from another type (e.g., Avalonia.Controls.Control).
public class TextViewComponentBase
Remarks
Provides automatic Avalonia.Controls.Documents.Primitives.Components.TextViewComponentBase.Host tracking, Avalonia.Controls.Documents.Primitives.Components.TextViewComponentBase.IsAttached state, and re-attach safety (detach-before-attach). Subclasses override Avalonia.Controls.Documents.Primitives.Components.TextViewComponentBase.OnAttached and Avalonia.Controls.Documents.Primitives.Components.TextViewComponentBase.OnDetached to subscribe and unsubscribe from host events.
Properties
| Name | Description |
|---|---|
| IsAttached | Gets whether this component is currently attached to a host. |
IsAttached Property
Gets whether this component is currently attached to a host.
public bool IsAttached { get; set; }