VisualExtensions.

GetVisualAt(IVisual, Point) Method

Summary

Gets the first visual in the visual tree whose bounds contain a point.
Namespace
Avalonia.VisualTree
Containing Type
VisualExtensions

Syntax

public static IVisual GetVisualAt(this IVisual visual, Point p)

Parameters

Name Type Description
visual IVisual The root visual to test.
p Point The point.

Return Value

Type Description
IVisual The visual at the requested point.