DeferredRenderer.

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

Summary

Hit tests a location to find first visual at the specified point.
Namespace
Avalonia.Rendering
Containing Type
DeferredRenderer

Syntax

public IVisual HitTestFirst(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
IVisual The visual at the specified point, topmost first.