InputExtensionsInputHitTest(IInputElement, Point, FuncVisual, Boolean, 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,
bool enabledElementsOnly = true
)
<ExtensionAttribute>
Public Shared Function InputHitTest (
element As IInputElement,
p As Point,
filter As Func(Of Visual, Boolean),
Optional enabledElementsOnly As Boolean = true
) As IInputElement
[<ExtensionAttribute>]
static member InputHitTest :
element : IInputElement *
p : Point *
filter : Func<Visual, bool> *
?enabledElementsOnly : bool
(* Defaults:
let _enabledElementsOnly = defaultArg enabledElementsOnly true
*)
-> 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.
- enabledElementsOnly Boolean (Optional)
- Whether to only return elements for which IsEffectivelyEnabled is true.
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).