Summary
Enumerates an
IVisual
and its ancestors in the visual tree.
- Namespace
- Avalonia
.VisualTree - Containing Type
- VisualExtensions
Syntax
public static IEnumerable<IVisual> GetSelfAndVisualAncestors(this IVisual visual)
Parameters
Name | Type | Description |
---|---|---|
visual | IVisual | The visual. |
Return Value
Type | Description |
---|---|
IEnumerable |
The visual and its ancestors. |