Table of Contents

Interface ILogical

Namespace
Avalonia.LogicalTree
Assembly
Avalonia.Base.dll

Represents a node in the logical tree.

[NotClientImplementable]
public interface ILogical
Extension Methods

Properties

IsAttachedToLogicalTree

Gets a value indicating whether the element is attached to a rooted logical tree.

bool IsAttachedToLogicalTree { get; }

Property Value

bool

LogicalChildren

Gets the logical children.

IAvaloniaReadOnlyList<ILogical> LogicalChildren { get; }

Property Value

IAvaloniaReadOnlyList<ILogical>

LogicalParent

Gets the logical parent.

ILogical? LogicalParent { get; }

Property Value

ILogical

Methods

NotifyAttachedToLogicalTree(LogicalTreeAttachmentEventArgs)

Notifies the control that it is being attached to a rooted logical tree.

void NotifyAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)

Parameters

e LogicalTreeAttachmentEventArgs

The event args.

Remarks

This method will be called automatically by the framework, you should not need to call this method yourself.

NotifyDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs)

Notifies the control that it is being detached from a rooted logical tree.

void NotifyDetachedFromLogicalTree(LogicalTreeAttachmentEventArgs e)

Parameters

e LogicalTreeAttachmentEventArgs

The event args.

Remarks

This method will be called automatically by the framework, you should not need to call this method yourself.

NotifyResourcesChanged(ResourcesChangedEventArgs)

Notifies the control that a change has been made to resources that apply to it.

void NotifyResourcesChanged(ResourcesChangedEventArgs e)

Parameters

e ResourcesChangedEventArgs

The event args.

Remarks

This method will be called automatically by the framework, you should not need to call this method yourself.

Events

AttachedToLogicalTree

Raised when the control is attached to a rooted logical tree.

event EventHandler<LogicalTreeAttachmentEventArgs>? AttachedToLogicalTree

Event Type

EventHandler<LogicalTreeAttachmentEventArgs>

DetachedFromLogicalTree

Raised when the control is detached from a rooted logical tree.

event EventHandler<LogicalTreeAttachmentEventArgs>? DetachedFromLogicalTree

Event Type

EventHandler<LogicalTreeAttachmentEventArgs>