Table of Contents

Property LogicalParents

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

LogicalParents

Gets an enumerable collection of all parent elements in the visual tree, starting from the immediate parent and traversing upward.

[Browsable(false)]
public virtual IEnumerable<FrameworkElement> LogicalParents { get; }

Property Value

IEnumerable<FrameworkElement>

Remarks

The enumeration begins with the immediate parent of the current element and continues up the visual tree until no more parents are found. This property is useful for scenarios where you need to inspect or process all ancestor elements of a given element.