Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an ArcGIS Silverlight app with a Map object. It containes an ArcGISTiledMapServiceLayer and a GraphicsLayer. We've written a custom measure tool for adding in a point at an offset on the graphic layer. I am trying to disable the mouse wheel zoom-in/zoom-out function when this tool is activated to prevent the user from being able to zooom while performing a measurement.

I've played around with various combinations of setting the map.IsHitTestVisible = false, graphicLayer.IsHitTestVisible = false, overriding OnMouseWheel(), all with no sucess. It either had no effect, or it disabled ALL mouse events, including the mouse down and mouse move event which I need for the measure tool.

I've read thru the documentation on the MouseWheel but I guess I'm not understanding it correctly. I just can't seem to get it to do what I want. And I can't find any specific examples that do what I want either.

Any suggestions or places I can look to figure this out?

I am using Silverlight 4 and ESRI Silverlight 2.4.

share|improve this question
up vote 1 down vote accepted

I haven't tried it, but you could try setting the Map's ZoomFactor property to zero 1 (storing the old value) while your measurement tool is active.

share|improve this answer
Or maybe zoomfactor = 1. – Kirk Kuykendall Feb 29 '12 at 17:19
Thank you both!! I forgot to put in my original question that I had tried setting zoom factor to 0 but it didn't quite work the way I wanted. But setting it to 1 did. Problem solved!! – mfowler Feb 29 '12 at 19:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.