ICustomHitTest Interface
Definition
Allows hit-testing to use a custom area instead of the area of the rendered content.
public interface ICustomHitTest
Methods
| Name | Description |
|---|---|
| HitTest | Determines whether a point is within the hit-test area. |
HitTest Method
Determines whether a point is within the hit-test area.
public bool HitTest(Avalonia.Point point)
Parameters
point Avalonia.Point
The point to hit test in local coordinate space, i.e., (0, 0) is the top-left corner of the visual element, not the top-left corner of the window.
Returns
bool