VisualExtensions.

GetVisualsAt(IVisual, Point, Func<IVisual, bool>) Method

Summary

Enumerates the visuals in the visual tree whose bounds contain a point.
Namespace
Avalonia.VisualTree
Containing Type
VisualExtensions

Syntax

public static IEnumerable<IVisual> GetVisualsAt(this IVisual visual, Point p, Func<IVisual, bool> filter)

Parameters

Name Type Description
visual IVisual The root visual to test.
p Point The point.
filter Func<IVisual, bool> A filter predicate. If the predicate returns false then the visual and all its children will be excluded from the results.

Return Value

Type Description
IEnumerable<IVisual> The visuals at the requested point.