I have a cu
stom Shape MyLine in which I use an adorner that draws some text near the line(lines description).
Now, my problem is that the MyShape is not identified when the user hits on that description text (and not on the line "body").
I tried this on MyLine but this does not even compile:
protected override HitTestResult HitTestCore(PointHitTestParameters hitTestParameters)
{
HitTestResult result = base.HitTestCore(hitTestParameters);
if (result == null)
{
result = adorner.InputHitTest(hitTestParameters.HitPoint);
}
}