VisualExtensionsGetVisualAt(Visual, Point, FuncVisual, Boolean) Method
Gets the first visual in the visual tree whose bounds contain a point.
Namespace: Avalonia.VisualTreeAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static Visual? GetVisualAt(
this Visual visual,
Point p,
Func<Visual, bool> filter
)
<ExtensionAttribute>
Public Shared Function GetVisualAt (
visual As Visual,
p As Point,
filter As Func(Of Visual, Boolean)
) As Visual
[<ExtensionAttribute>]
static member GetVisualAt :
visual : Visual *
p : Point *
filter : Func<Visual, bool> -> Visual
- visual Visual
- The root visual to test.
- p Point
- The point.
- 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 requested point.In Visual Basic and C#, you can call this method as an instance method on any object of type
Visual. 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).