ILogical Interface
Definition
Represents a node in the logical tree.
public interface ILogical
Methods
| Name | Description |
|---|---|
| NotifyAttachedToLogicalTree | Notifies the control that it is being attached to a rooted logical tree. |
| NotifyDetachedFromLogicalTree | Notifies the control that it is being detached from a rooted logical tree. |
| NotifyResourcesChanged | Notifies 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
| Name | Description |
|---|---|
| IsAttachedToLogicalTree | Gets a value indicating whether the element is attached to a rooted logical tree. |
| LogicalChildren | Gets the logical children. |
| LogicalParent | Gets 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
| Name | Description |
|---|---|
| AttachedToLogicalTree | Raised when the control is attached to a rooted logical tree. |
| DetachedFromLogicalTree | Raised 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