Select to view content in your preferred language

Problems with MouseEnter and MouseLeave on a Graphic

798
2
Jump to solution
05-03-2012 06:56 PM
NicoleSchmidt
Emerging Contributor
I am wiring up an event on mouse enter and on mouse leave of a Line Graphic to highlight it.  I am having problems with the events firing in a timely manner (or at all).   I am doing this in conjunction with some routing, but I am not sure that is relevant.  I have attached a project which demonstrates the problem (and includes some routing).

Does anyone have any ideas for me?

Thanks!
0 Kudos
1 Solution

Accepted Solutions
JenniferNery
Esri Regular Contributor
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
Have you looked at this SDK sample? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SelectGraphics or this? http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#CustomSymbols. You can highlight the graphic by providing VisualStates (MouseOver).
0 Kudos
NicoleSchmidt
Emerging Contributor
Thanks Jennifer that did resolve it, and my code is much simpler for the change.  For anyone else interested, I attached the project with the final working code that now works without a delay in highlighting the graphic.
0 Kudos