I have written a user control that displays a tree view and a data grid for a selected feature. The graphic for that feature is on an element layer, and when the user hovers over that graphic my user control is animated out from that graphic to display the feature's attributes in the tree view/data grid. That is all working great.
The problem I am having is with map mouse events. I have a grid splitter on my user control that allows the user to resize the two halves of the control. While I am dragging the grid splitter the map pans in the background. I also have a similar issue when I am using my mouse roller wheel to scroll up and down in my data grid. When I get to the top or bottom of the data grid the map starts to zoom in and out.
So what is going on is that the map mouse events are still firing even though I'm over top of my user control. I am thinking that because the user control is on an element layer, which is part of the map, my mouse is technically still over the map when it's over the user control.
What I would like to do is disable all mouse interaction with the map when the mouse has entered my user control and then re-enable all map mouse interaction when it has left my user control. I have been unable to find a quick and dirty way to do that up to this point. I've tried setting the IsHitTestVisible property for the map to false - that didn't work. I also tried ReleaseMouseCapture on the map as well and that didn't work either.
Can someone point me in the right direction here? Thanks a ton ...