Skip to main content

ICustomHitTest Interface

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Allows hit-testing to use a custom area instead of the area of the rendered content.

public interface ICustomHitTest

Methods​

NameDescription
HitTestDetermines 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

On this page