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
LogicalChildren
Gets the logical children.
IAvaloniaReadOnlyList<ILogical> LogicalChildren { get; }
Property Value
LogicalParent
Gets the logical parent.
ILogical? LogicalParent { get; }
Property Value
Methods
NotifyAttachedToLogicalTree(LogicalTreeAttachmentEventArgs)
Notifies the control that it is being attached to a rooted logical tree.
void NotifyAttachedToLogicalTree(LogicalTreeAttachmentEventArgs e)
Parameters
e
LogicalTreeAttachmentEventArgsThe 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
LogicalTreeAttachmentEventArgsThe 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
ResourcesChangedEventArgsThe 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
DetachedFromLogicalTree
Raised when the control is detached from a rooted logical tree.
event EventHandler<LogicalTreeAttachmentEventArgs>? DetachedFromLogicalTree