Scene.

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

Summary

Gets the visual at a point in the scene.
Namespace
Avalonia.Rendering.SceneGraph
Containing Type
Scene

Syntax

public IVisual HitTestFirst(Point p, IVisual root, Func<IVisual, bool> filter)

Parameters

Name Type Description
p Point The point.
root IVisual The root of the subtree to search.
filter Func<IVisual, bool> A filter. May be null.

Return Value

Type Description
IVisual The visual at the specified point.