events on routes

Aug 31, 2010 at 4:15 PM

Hi radioman,

i'm trying to manage some events on the routes (i.e. when the cursor is on the route i'll show the route highlighted) but actually it won't work, i can show the route, i can create the events on the route shape but they won't trigger. Do you have an idea?

Aug 31, 2010 at 4:59 PM

wpf?

Sep 1, 2010 at 7:48 AM

yes in wpf

Sep 1, 2010 at 10:36 PM

should work perfectly

Sep 2, 2010 at 7:56 AM

i thought it too but actually, i've created the mouse enter and mouse leave on the shape of  the route (on the Path object), but these events won't trigger when the mouse cursor passes on the route

Sep 2, 2010 at 12:56 PM

be default it's optimized and does not respond to mouse events, just do myPath.IsHitTestVisible = true; // and it will responds as expected

Sep 2, 2010 at 1:47 PM

now it's perfect!

thx radioman ;)