Skip to main content

ILogical Interface

Definition

Assembly:Avalonia.Base
Package:Avalonia

Represents a node in the logical tree.

public interface ILogical

Methods

NameDescription
NotifyAttachedToLogicalTreeNotifies the control that it is being attached to a rooted logical tree.
NotifyDetachedFromLogicalTreeNotifies the control that it is being detached from a rooted logical tree.
NotifyResourcesChangedNotifies the control that a change has been made to resources that apply to it.

NotifyAttachedToLogicalTree Method

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

public void NotifyAttachedToLogicalTree(Avalonia.LogicalTree.LogicalTreeAttachmentEventArgs e)

Parameters

e Avalonia.LogicalTree.LogicalTreeAttachmentEventArgs

The event args.

Remarks

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

NotifyDetachedFromLogicalTree Method

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

public void NotifyDetachedFromLogicalTree(Avalonia.LogicalTree.LogicalTreeAttachmentEventArgs e)

Parameters

e Avalonia.LogicalTree.LogicalTreeAttachmentEventArgs

The event args.

Remarks

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

NotifyResourcesChanged Method

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

public void NotifyResourcesChanged(Avalonia.Controls.ResourcesChangedEventArgs e)

Parameters

e Avalonia.Controls.ResourcesChangedEventArgs

The event args.

Remarks

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

Properties

NameDescription
IsAttachedToLogicalTreeGets a value indicating whether the element is attached to a rooted logical tree.
LogicalChildrenGets the logical children.
LogicalParentGets the logical parent.

IsAttachedToLogicalTree Property

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

public bool IsAttachedToLogicalTree { get; set; }

LogicalChildren Property

Gets the logical children.

public Avalonia.Collections.IAvaloniaReadOnlyList<T><Avalonia.LogicalTree.ILogical> LogicalChildren { get; set; }

LogicalParent Property

Gets the logical parent.

public Avalonia.LogicalTree.ILogical LogicalParent { get; set; }

Events

NameDescription
AttachedToLogicalTreeRaised when the control is attached to a rooted logical tree.
DetachedFromLogicalTreeRaised when the control is detached from a rooted logical tree.

AttachedToLogicalTree Event

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

public event EventHandler<Avalonia.LogicalTree.LogicalTreeAttachmentEventArgs> AttachedToLogicalTree

DetachedFromLogicalTree Event

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

public event EventHandler<Avalonia.LogicalTree.LogicalTreeAttachmentEventArgs> DetachedFromLogicalTree