Mouse Enter/Leave Event over Graphic layer is fired with no apparent reason

4528
1
Jump to solution
03-21-2016 12:03 AM
Labels (1)
DrorElgabsi
New Contributor II

Hi,

I am trying to implement InfoWindow in my application,

open the InfoWindow on graphic layer mouseEnter event and close it on mouseLeave.

the problem is that the events are firing with no apparent reason, the info window is open and close rapidly even if  I'm on the graphic layer element.

thanks in advance!

p.s.

I am using the Esri.Runtime.WPF 10.2.5

0 Kudos
1 Solution

Accepted Solutions
DrorElgabsi
New Contributor II

,I figure it out two seconds after posting it

...I'm posting the answer for future reference

the problem was that on mouseEnter I opened the Info Window on the same position as the cursor so now the cursor left the graphic layer and moved to the InfoWindow.

what i'll do now is ancore the info window just above the element so it won't take focus.

View solution in original post

0 Kudos
1 Reply
DrorElgabsi
New Contributor II

,I figure it out two seconds after posting it

...I'm posting the answer for future reference

the problem was that on mouseEnter I opened the Info Window on the same position as the cursor so now the cursor left the graphic layer and moved to the InfoWindow.

what i'll do now is ancore the info window just above the element so it won't take focus.

0 Kudos