Justin CI
Justin CI

Reputation: 2741

WpfDrawingDocument HitTest with rectangle always return null

I'm using the following code to extract elements in a particular area:

var histTest = _drawingDocument.HitTest(new Rect(x, y, width, height), IntersectionDetail.Intersects);

Unfortunately, the hitTest elements are always null, and IsHit is false. Am I doing something wrong? Please guide me to fix this issue.

Regards, Jestin CI

Upvotes: 0

Views: 14

Answers (0)

Related Questions