Quantcast
Channel: Include Adorner in HitTest
Viewing all articles
Browse latest Browse all 6

Include Adorner in HitTest

$
0
0

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);
    }
  }


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images