InputExtensions.

InputHitTest(IInputElement, Point, Func<IVisual, bool>) Method

Summary

Returns the topmost active input element at a point on an IInputElement.
Namespace
Avalonia.Input
Containing Type
InputExtensions

Syntax

public static IInputElement? InputHitTest(this IInputElement element, Point p, Func<IVisual, bool> filter)

Parameters

Name Type Description
element IInputElement The element to test.
p Point The point on element.
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
IInputElement? The topmost IInputElement at the specified position.