Struct WindowHitTestEventRef
Represents a platform-level hit test event that allows the application to define how a point within a custom window frame should be interpreted (e.g., as a draggable title bar, resize border, or transparent region).
public ref struct WindowHitTestEventRef
- Inherited Members
Remarks
This event is dispatched when the user interacts with the non-client area of a custom-framed window (such as the emulator window or a styled installer). It is primarily used on platforms like Windows that support fine-grained window frame interaction via hit testing.
On macOS and other platforms where native support is unavailable, this event may be ignored or implemented through custom code.
Constructors
WindowHitTestEventRef(Point, Rect)
Initializes a new instance of the WindowHitTestEventRef struct.
public WindowHitTestEventRef(Point point, Rect window)
Parameters
Fields
Area
The result of the hit test, set by the application to control how the system should interpret the hit location.
public WindowHitTestEventRef.WindowArea Area
Field Value
Point
The location of the hit test, in logical window coordinates.
public Point Point
Field Value
Window
The bounds of the entire window, in logical coordinates. This may be used to determine edge proximity for resizing logic.
public Rect Window