Mouse Event on TextAnnoation

Oystein Bjorke 10 jaar geleden 0
This discussion was imported from CodePlex

raphay wrote at 2013-04-19 13:25:

Hi,

I am using Mouse Event in WPF on different types of annotation, I have no problem to handle event on the LineAnnotations and ArrowAnnotations, but i don't succeed in handling event on TextAnnotation, the mouse down event is never called in my application. Is there a property to activate ?

Thank you for your answers.

objo wrote at 2013-04-19 15:07:

I just added a simple HitTest implementation for the TextAnnotation, try the latest version.
The implementation use a point-in-polygon test, it should be possible to improve performance by using a point-in-rectangle test (but this means rotation and alignment must be considered...)