IRenderer.

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

Summary

Hit tests a location to find the visuals at the specified point.
Namespace
Avalonia.Rendering
Containing Type
IRenderer

Syntax

IEnumerable<IVisual> HitTest(Point p, IVisual root, Func<IVisual, bool> filter)

Parameters

Name Type Description
p Point The point, in client coordinates.
root IVisual The root of the subtree to search.
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 specified point, topmost first.