Interface IHitTester
[PrivateApi]
public interface IHitTester
Methods
HitTest(Point, Visual, Func<Visual, bool>?)
Hit tests a location to find the visuals at the specified point.
IEnumerable<Visual> HitTest(Point p, Visual root, Func<Visual, bool>? filter)
Parameters
p
PointThe point, in client coordinates.
root
VisualThe root of the subtree to search.
filter
Func<Visual, bool>A filter predicate. If the predicate returns false then the visual and all its children will be excluded from the results.
Returns
- IEnumerable<Visual>
The visuals at the specified point, topmost first.
HitTestFirst(Point, Visual, Func<Visual, bool>?)
Hit tests a location to find first visual at the specified point.
Visual? HitTestFirst(Point p, Visual root, Func<Visual, bool>? filter)
Parameters
p
PointThe point, in client coordinates.
root
VisualThe root of the subtree to search.
filter
Func<Visual, bool>A filter predicate. If the predicate returns false then the visual and all its children will be excluded from the results.
Returns
- Visual
The visual at the specified point, topmost first.