IHitTesterHitTestFirst Method
Hit tests a location to find first visual at the specified point.
Namespace: Avalonia.RenderingAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
Visual? HitTestFirst(
Point p,
Visual root,
Func<Visual, bool>? filter
)
Function HitTestFirst (
p As Point,
root As Visual,
filter As Func(Of Visual, Boolean)
) As Visual
abstract HitTestFirst :
p : Point *
root : Visual *
filter : Func<Visual, bool> -> Visual
- p Point
- The point, in client coordinates.
- root Visual
- The root of the subtree to search.
- filter FuncVisual, Boolean
-
A filter predicate. If the predicate returns false then the visual and all its
children will be excluded from the results.
VisualThe visual at the specified point, topmost first.