InputExtensionsInputHitTest(IInputElement, Point, FuncVisual, Boolean) Method
Returns the topmost active input element at a point on an
IInputElement.
Namespace: Avalonia.InputAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static IInputElement? InputHitTest(
this IInputElement element,
Point p,
Func<Visual, bool> filter
)
<ExtensionAttribute>
Public Shared Function InputHitTest (
element As IInputElement,
p As Point,
filter As Func(Of Visual, Boolean)
) As IInputElement
[<ExtensionAttribute>]
static member InputHitTest :
element : IInputElement *
p : Point *
filter : Func<Visual, bool> -> IInputElement
- element IInputElement
- The element to test.
- p Point
- The point on element.
- filter FuncVisual, Boolean
-
A filter predicate. If the predicate returns false then the visual and all its
children will be excluded from the results.
IInputElementThe topmost
IInputElement at the specified position.In Visual Basic and C#, you can call this method as an instance method on any object of type
IInputElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).